作者 王智

修改

... ... @@ -286,6 +286,11 @@ 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();
if (!empty($res111)) {
$this->error('禁止重复签订协议', 0);
die;
}
$data = [
'OrderSn' => $OrderSn,
'user_id' => $UserId,
... ...