正在显示
1 个修改的文件
包含
1 行增加
和
3 行删除
@@ -231,6 +231,7 @@ class Car extends Base | @@ -231,6 +231,7 @@ class Car extends Base | ||
231 | $phone = $this->request->param("phone"); | 231 | $phone = $this->request->param("phone"); |
232 | $is_adult = $this->request->param("is_adult"); | 232 | $is_adult = $this->request->param("is_adult"); |
233 | $user_id = $this->auth->id; | 233 | $user_id = $this->auth->id; |
234 | + return $this->success("添加成功", $user_id); | ||
234 | if(!$user_id){ | 235 | if(!$user_id){ |
235 | $this->error("添加失败,token失效。".$this->auth->id); | 236 | $this->error("添加失败,token失效。".$this->auth->id); |
236 | } | 237 | } |
@@ -250,9 +251,6 @@ class Car extends Base | @@ -250,9 +251,6 @@ class Car extends Base | ||
250 | */ | 251 | */ |
251 | public function updatepassenger() | 252 | public function updatepassenger() |
252 | { | 253 | { |
253 | - $user_id = $this->auth->id; | ||
254 | - print_r($user_id);return; | ||
255 | - | ||
256 | $name = $this->request->param("name"); | 254 | $name = $this->request->param("name"); |
257 | $IDcard = $this->request->param("IDcard"); | 255 | $IDcard = $this->request->param("IDcard"); |
258 | $phone = $this->request->param("phone"); | 256 | $phone = $this->request->param("phone"); |
-
请 注册 或 登录 后发表评论