作者 刘朕

验证码

@@ -47,10 +47,10 @@ class CommonController extends HomeBaseController @@ -47,10 +47,10 @@ class CommonController extends HomeBaseController
47 ]; 47 ];
48 $code_model = new CodeModel(); 48 $code_model = new CodeModel();
49 $code_model->addCode($code_insert); 49 $code_model->addCode($code_insert);
50 -// $result = explode(',',$this->sendSMS($mobile,$code));  
51 -// if($result[0] != 1) {  
52 -// $this->error($result[0]);  
53 -// } 50 + $result = explode(',',$this->sendSMS($mobile,$code));
  51 + if($result[0] != 1) {
  52 + $this->error($result[0]);
  53 + }
54 $this->success('发送成功'); 54 $this->success('发送成功');
55 } 55 }
56 } 56 }