正在显示
1 个修改的文件
包含
2 行增加
和
1 行删除
| @@ -35,7 +35,6 @@ class Login extends Base | @@ -35,7 +35,6 @@ class Login extends Base | ||
| 35 | $result = http_request($url); | 35 | $result = http_request($url); |
| 36 | //file_put_contents("111111111111222.txt","3-1. ".($result)."\r\n",FILE_APPEND); | 36 | //file_put_contents("111111111111222.txt","3-1. ".($result)."\r\n",FILE_APPEND); |
| 37 | $res = json_decode($result, true); | 37 | $res = json_decode($result, true); |
| 38 | - print_r($res);return; | ||
| 39 | if (!$res) { | 38 | if (!$res) { |
| 40 | $this->error("授权失败,请尝试重新授权"); | 39 | $this->error("授权失败,请尝试重新授权"); |
| 41 | //$res = json_decode(send_post($url), true); | 40 | //$res = json_decode(send_post($url), true); |
| @@ -45,6 +44,8 @@ class Login extends Base | @@ -45,6 +44,8 @@ class Login extends Base | ||
| 45 | if($user){ | 44 | if($user){ |
| 46 | $res=$this->auth->direct($user['id']); | 45 | $res=$this->auth->direct($user['id']); |
| 47 | $return_data = $this->auth->getUserinfo(); | 46 | $return_data = $this->auth->getUserinfo(); |
| 47 | + print_r($return_data);return; | ||
| 48 | + | ||
| 48 | //判断是否是司机 | 49 | //判断是否是司机 |
| 49 | $driver=Db::name("driver")->where("user_id",$user['id'])->find(); | 50 | $driver=Db::name("driver")->where("user_id",$user['id'])->find(); |
| 50 | $return_data['driver_type']=0; | 51 | $return_data['driver_type']=0; |
-
请 注册 或 登录 后发表评论