作者 潘浩文
1 个管道 的构建 通过 耗费 0 秒

更新 UsersController.php

... ... @@ -479,7 +479,6 @@ class UsersController extends HomeBaseController{
'spbill_create_ip' => get_client_ip(0, true), //发起交易的IP地址
];
$re = $merchantPay->send($merchantPayData);
$this->apiResponse(200,$re);
if ($re['return_code']=='SUCCESS' && $re['result_code']=='SUCCESS'){
Db::startTrans();
try{
... ... @@ -497,10 +496,11 @@ class UsersController extends HomeBaseController{
$this->apiResponse(301,'提现失败');
}
$this->apiResponse(200,'success');
}else{
$this->apiResponse(301,'提现失败');
}
}else{
$this->apiResponse(300,'余额不足提现失败');
}
}
}
\ No newline at end of file
... ...