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