lizhen_gitee 9 months ago
parent
commit
23d42265f2
1 changed files with 10 additions and 0 deletions
  1. 10 0
      application/api/controller/tvuser/Wenzhen.php

+ 10 - 0
application/api/controller/tvuser/Wenzhen.php

@@ -151,6 +151,11 @@ class Wenzhen extends Api
 
     //订单列表
     public function order_list(){
+        //判断用户来源
+        if($this->auth->comefrom != 2){
+            $this->error('用户错误');
+        }
+
         $status = input('status','all');
 
         $where = ['user_id'=>$this->auth->id];
@@ -208,6 +213,11 @@ class Wenzhen extends Api
             $this->error('操作频繁');
         }
 
+        //判断用户来源
+        if($this->auth->comefrom != 2){
+            $this->error('用户错误');
+        }
+
         //订单详情
         $order_id = input('order_id',0);
         Db::startTrans();