Kirin 2 년 전
부모
커밋
d40bdb0920
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/admin/controller/finance/UserExtract.php

+ 1 - 1
app/admin/controller/finance/UserExtract.php

@@ -161,7 +161,7 @@ class UserExtract extends AuthController
 
         $real_get = $extract['extract_price'] - $extract['commission_gf'] - $extract['commission_consumer'] - $extract['commission_yue'] - $extract['commission'];
 
-        if ($real_get >= 0.3 && $extract['extract_type'] == 'weixin') {
+        if ($res && $real_get >= 0.3 && $extract['extract_type'] == 'weixin') {
             $open_id = WechatUser::where('uid', $extract['uid'])->find();
             if ($open_id['openid']) {
                 try {