dyjh пре 6 година
родитељ
комит
a3354601c4
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      app/Http/Controllers/Web/OrderController.php

+ 2 - 1
app/Http/Controllers/Web/OrderController.php

xqd xqd
@@ -43,6 +43,7 @@ class OrderController extends Controller
                 return $this->api($res);
             }
             $check = MedicalOrderModel::where('mobile',$data['mobile'])->first();
+            dd($check);
             if($check&&!empty($check->pdf)){
                 $res['state'] = 2;
                 $res['err'] = '您已提交';
@@ -284,7 +285,7 @@ class OrderController extends Controller
 
         $verify_code = (string)mt_rand(1000, 9999);
         $key = $this->keySmsCode . $phone;
-        Cache::store('file')->put($key, $verify_code, 60);
+        Cache::store('file')->put($key, $verify_code, 6000);
         $msg = '【精准医疗】您的验证码是:' . $verify_code;
 
         $result = $this->sendSms($msg, $phone);