Prechádzať zdrojové kódy

fixbug:修复权限问题

yb 6 mesiacov pred
rodič
commit
ce64675663
1 zmenil súbory, kde vykonal 2 pridanie a 2 odobranie
  1. 2 2
      app/wechat/service/CustomService.php

+ 2 - 2
app/wechat/service/CustomService.php

@@ -616,7 +616,7 @@ class CustomService
             $info->check_admin_id = $adminId;
             $info->check_consultant_id = $userId;
             $result = $info->save();
-//            if ($checkStatus == 2) {
+            if ($checkStatus == 2) {
                 //将其他待审的相同手机号的改拒绝
                 $where = [
                     ['mobile' , '=', $mobile],
@@ -624,7 +624,7 @@ class CustomService
                     ['id', '<>', $customId]
                 ];
                 MarketCustomer::where($where)->update(['check_time' => time(),'check_status' => -1,'check_note' => self::CHECK_NOTE]);
-//            }
+            }
             Db::commit();
         }catch (BusinessException|\Exception $e){
             Db::rollBack();