刘桂岩 4 éve
szülő
commit
78b68e9da0

+ 0 - 3
application/index/controller/Index.php

@@ -8,15 +8,12 @@
 
 namespace app\index\controller;
 
-use app\common\library\CMCC;
 use app\common\library\UUIDs;
 use think\Controller;
 use think\Db;
 class Index extends Controller
 {
     public function  index(){
-        $a = CMCC::sms('13763459789','1111');
-        var_dump($a);die;
         // echo "index";
         return $this->redirect('http://work.pacsonline.cn',302);
     }

+ 3 - 1
application/inter/controller/Login.php

@@ -1,6 +1,7 @@
 <?php
 namespace app\inter\controller;
 
+use app\common\library\CMCC;
 use think\Controller;
 use think\Db;
 use think\Session;
@@ -121,7 +122,8 @@ class Login extends Controller
                 $handle_id = $phone.rand('10000000','99999999');
                 Cache::set('sendcode_'.$phone,$code,600);
                 Cache::set('sendcode_handle_id'.$handle_id, $phone, 600);
-                $info = send_message::sendSms2UpDate($phone,$code);
+                $info = CMCC::sms($phone,$code);
+                // $info = send_message::sendSms2UpDate($phone,$code);
                 log::record("login() set code => {handle_id: $handle_id \t code: $code \t phone: $phone \t}");
                 return json_encode(['status'=>'ok','code'=>'0000','need_code'=> true, 'phone' => $check, 'handle_id' => $handle_id]);
             }