gengx
This commit is contained in:
commit
4473299e3d
|
|
@ -14,3 +14,4 @@
|
||||||
/cashregister
|
/cashregister
|
||||||
/upload
|
/upload
|
||||||
/runtime
|
/runtime
|
||||||
|
/addon/fenxiao1
|
||||||
|
|
|
||||||
|
|
@ -271,11 +271,12 @@ class Futures extends BaseApi{
|
||||||
|
|
||||||
$token = $this->checkToken();
|
$token = $this->checkToken();
|
||||||
if ($token['code'] < 0) return $this->response($token);
|
if ($token['code'] < 0) return $this->response($token);
|
||||||
|
|
||||||
$id = input('id', 0);
|
$id = input('id', 0);
|
||||||
|
|
||||||
$futuresModel = new FuturesModel;
|
$futuresModel = new FuturesModel;
|
||||||
$detail = $futuresModel->detail($id, $this->site_id);
|
$detail = $futuresModel->detail($id, $this->site_id);
|
||||||
if($detail['code'] < 0 || empty($detail['data']) || $detail['data']['seller_uid'] != $this->member_id){
|
if($detail['code'] < 0 || empty($detail['data']) || !($detail['data']['seller_uid'] == $this->member_id || $detail['data']['member_id'] == $this->member_id)){
|
||||||
return $this->response($this->error('','订单不存在'));
|
return $this->response($this->error('','订单不存在'));
|
||||||
}
|
}
|
||||||
return $this->response($detail);
|
return $this->response($detail);
|
||||||
|
|
|
||||||
|
|
@ -53,6 +53,7 @@ class Futures extends BaseModel{
|
||||||
'a.real_income',
|
'a.real_income',
|
||||||
'a.site_id',
|
'a.site_id',
|
||||||
'a.seller_uid',
|
'a.seller_uid',
|
||||||
|
'a.member_id',
|
||||||
'a.goods_id',
|
'a.goods_id',
|
||||||
'a.id',
|
'a.id',
|
||||||
'a.total',
|
'a.total',
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue