作者 王智

修改

... ... @@ -286,7 +286,7 @@ class Index extends Api
$OrderSn = $this->order_sn();
//押金
$MoneyArr = Db::name('money_config')->where('battery_id', $params['battery_id'])->find();
$res111 = Db::name('agreement')->where('user_id', $UserId)->where('seller_id', $params['seller_id'])->find();
$res111 = Db::name('agreement')->where('user_id', $UserId)->where('seller_id', $params['seller_id'])->where('status', 'IN', '0,1')->find();
if (!empty($res111)) {
$this->error('禁止重复签订协议', 0);
die;
... ...