Commit 58e16d97 by 冷斌

fix bug

parent 20511e06
......@@ -7,6 +7,7 @@ use Common\Controller\HomebaseController;
class AuthController extends HomebaseController {
public function index(){
$this->sendNotice();
$uid=I("uid");
$token=I("token");
if( !$uid || !$token || checkToken($uid,$token)==700 ){
......@@ -117,6 +118,24 @@ class AuthController extends HomebaseController {
return json_decode($result, true);
}
public function sendNotice()
{
$configpri=getConfigPri();
$mobile = [];
if (!empty($configpri['yy_mobile'])) {
$mobile[] = $configpri['yy_mobile'];
}
if (!empty($configpri['yy_mobile2'])) {
$mobile[] = $configpri['yy_mobile2'];
}
if (!empty($configpri['yy_mobile3'])) {
$mobile[] = $configpri['yy_mobile3'];
}
$m = import(',', $mobile);
var_dump($m);
die;
}
/* 认证保存 */
public function authsave(){
......@@ -152,7 +171,7 @@ class AuthController extends HomebaseController {
$result=M("users_auth")->add($data);
}
$this->sendNotice();
if($result!==false){
echo json_encode(array("ret"=>200,'data'=>array(),'msg'=>''));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment