mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-05-22 06:49:15 +08:00
Update UserTransfer.php
This commit is contained in:
parent
ecc38b7e4d
commit
8eedb40308
@ -99,9 +99,12 @@ class UserTransfer extends Command
|
|||||||
*/
|
*/
|
||||||
private function transferWallet(array $item): array
|
private function transferWallet(array $item): array
|
||||||
{
|
{
|
||||||
$wechat = Transfers::instance($config = $this->getPayment());
|
$config = $this->getPayment();
|
||||||
|
$wechat = Transfers::instance($config);
|
||||||
|
$openid = $this->getUserOpenid($item['uid'], $config);
|
||||||
|
if (empty($openid)) throw new Exception("提现{$item['code']}获取用户OPENID失败");
|
||||||
return $wechat->create([
|
return $wechat->create([
|
||||||
'openid' => $this->getUserOpenid($item['uid'], $config),
|
'openid' => $openid,
|
||||||
'amount' => $item['amount'] * 100,
|
'amount' => $item['amount'] * 100,
|
||||||
'partner_trade_no' => $item['code'],
|
'partner_trade_no' => $item['code'],
|
||||||
'spbill_create_ip' => '127.0.0.1',
|
'spbill_create_ip' => '127.0.0.1',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user