...
|
...
|
@@ -657,10 +657,11 @@ class Index extends Api |
|
|
}
|
|
|
$IsAgreement = Db::name('stor')
|
|
|
->alias('r')
|
|
|
->where('r.id', $params['id'])
|
|
|
->join('seller s', 'r.user_id=s.user_id')
|
|
|
->join('agreement a', 'a.seller_id=s.id')
|
|
|
->where('a.user_id', $UserId)
|
|
|
->where('a.status',1)
|
|
|
->where('a.status', 1)
|
|
|
->find();
|
|
|
if (empty($IsAgreement)) {
|
|
|
$this->error('请先签订协议', '', '99998');
|
...
|
...
|
|