【修改】2023/4/1

This commit is contained in:
liqianjin 2023-04-03 09:31:44 +08:00
parent f4d788087f
commit 3eb8bcb6ce
2 changed files with 3 additions and 2 deletions

View File

@ -128,7 +128,7 @@ class Futures extends BaseApi{
break; break;
case '审核出售': case '审核出售':
$condition[] = ['a.seller_uid', '=', $this->member_id]; $condition[] = ['a.seller_uid', '=', $this->member_id];
$condition[] = ['a.status', '=', 2]; $condition[] = ['a.status', 'in', [2, 6]];
$condition[] = ['a.release_time', '>', time()]; $condition[] = ['a.release_time', '>', time()];
break; break;
case 'stock': case 'stock':
@ -295,7 +295,7 @@ class Futures extends BaseApi{
$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);

View File

@ -54,6 +54,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',