|
|
@@ -161,17 +161,16 @@ class UserExtract extends AuthController
|
|
|
|
|
|
$real_get = $extract['extract_price'] - $extract['commission_gf'] - $extract['commission_consumer'] - $extract['commission_yue'] - $extract['commission'];
|
|
|
|
|
|
- if ($real_get > 0 && $extract['extract_type'] == 'weixin') {
|
|
|
+ if ($real_get >= 0.3 && $extract['extract_type'] == 'weixin') {
|
|
|
$open_id = WechatUser::where('uid', $extract['uid'])->find();
|
|
|
if ($open_id['openid']) {
|
|
|
try {
|
|
|
- $ress = WechatService::paymentService()->batches(
|
|
|
+ WechatService::paymentService()->batches(
|
|
|
'ex' . date('YmdHis') . $extract['id'],
|
|
|
$open_id['openid'],
|
|
|
$real_get * 100,
|
|
|
sys_config('site_name') . '-' . '用户提现到账'
|
|
|
);
|
|
|
- dump($ress);
|
|
|
} catch (\Exception $e) {
|
|
|
UserExtractModel::rollbackTrans();
|
|
|
return JsonService::fail($e->getMessage());
|