正在显示
1 个修改的文件
包含
2 行增加
和
1 行删除
@@ -230,7 +230,8 @@ class Car extends Base | @@ -230,7 +230,8 @@ class Car extends Base | ||
230 | $IDcard = $this->request->param("IDcard"); | 230 | $IDcard = $this->request->param("IDcard"); |
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 | - file_put_contents("token.txt","12-24. ".($this->auth->getToken())."\r\n",FILE_APPEND); | 233 | + $token = $this->request->header("token"); |
234 | + file_put_contents("token.txt","12-24. ".($token)."\r\n",FILE_APPEND); | ||
234 | if(!$this->auth->id){ | 235 | if(!$this->auth->id){ |
235 | $this->error("添加失败,token失效。"); | 236 | $this->error("添加失败,token失效。"); |
236 | } | 237 | } |
-
请 注册 或 登录 后发表评论