正在显示
1 个修改的文件
包含
3 行增加
和
0 行删除
@@ -38,6 +38,9 @@ class Tixian extends Api | @@ -38,6 +38,9 @@ class Tixian extends Api | ||
38 | public function Yueprice() | 38 | public function Yueprice() |
39 | { | 39 | { |
40 | $token = input('token'); | 40 | $token = input('token'); |
41 | + if(empty($token)){ | ||
42 | + $this->error('token不能为空'); | ||
43 | + } | ||
41 | $price = input('price'); | 44 | $price = input('price'); |
42 | $type = input('type'); | 45 | $type = input('type'); |
43 | $user_id = Db::name('user_token')->where(['token' => $token])->value('id'); | 46 | $user_id = Db::name('user_token')->where(['token' => $token])->value('id'); |
-
请 注册 或 登录 后发表评论