|
@@ -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]);
|
|
|
}
|