Răsfoiți Sursa

核销不验证

gorden 1 lună în urmă
părinte
comite
fc9067f33b
1 a modificat fișierele cu 7 adăugiri și 7 ștergeri
  1. 7 7
      app/admin/controller/order/WholeController.php

+ 7 - 7
app/admin/controller/order/WholeController.php

@@ -3910,12 +3910,12 @@ class WholeController extends Curd
         }
 
         $member = Member::find($memberId);
-        $mobile = $member->member_mobile;
-        $key = "SMS:CODE:WRITE_OFF:" . $mobile;
-        $redisCode = Redis::get($key);
-        if ($redisCode != $code) {
-            return json_fail("验证码错误,请重新输入");
-        }
+//        $mobile = $member->member_mobile;
+//        $key = "SMS:CODE:WRITE_OFF:" . $mobile;
+//        $redisCode = Redis::get($key);
+//        if ($redisCode != $code) {
+//            return json_fail("验证码错误,请重新输入");
+//        }
 
         $benefits = MemberBenefit::whereIn('member_benefit_id', $benefitIds)
             ->where('join_benefit_member_id', $memberId)
@@ -4032,7 +4032,7 @@ class WholeController extends Curd
                 }
             }
 
-            Redis::del($key);
+//            Redis::del($key);
 
             Db::commit();