xiaogang преди 3 години
родител
ревизия
eb489ac61d
променени са 1 файла, в които са добавени 5 реда и са изтрити 5 реда
  1. 5 5
      app/Services/SmsService.php

+ 5 - 5
app/Services/SmsService.php

xqd xqd
@@ -54,10 +54,10 @@ class SmsService
 
             $templateId = self::getTemplateIdByEvent($event);
 
-          	if(app()->isLocal()){
-            	$smsCode = 1234 ;
-            	$result = true;
-            }else{
+//          	if(app()->isLocal()){
+//            	$smsCode = 1234 ;
+//            	$result = true;
+//            }else{
               $smsCode = self::getSmsCode();
               $result = self::easySms()->send($mobile, [
                   'template' => $templateId,
@@ -67,7 +67,7 @@ class SmsService
   //                    'expTime' => 10,
                   ]
               ],['aliyun']);
-            }
+//            }
             //$result = true;
 
             //缓存验证码