作者 王智

k11

@@ -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');