作者 王智

修改

@@ -286,6 +286,11 @@ class Index extends Api @@ -286,6 +286,11 @@ class Index extends Api
286 $OrderSn = $this->order_sn(); 286 $OrderSn = $this->order_sn();
287 //押金 287 //押金
288 $MoneyArr = Db::name('money_config')->where('battery_id', $params['battery_id'])->find(); 288 $MoneyArr = Db::name('money_config')->where('battery_id', $params['battery_id'])->find();
  289 + $res111 = Db::name('agreement')->where('user_id', $UserId)->where('seller_id', $params['seller_id'])->find();
  290 + if (!empty($res111)) {
  291 + $this->error('禁止重复签订协议', 0);
  292 + die;
  293 + }
289 $data = [ 294 $data = [
290 'OrderSn' => $OrderSn, 295 'OrderSn' => $OrderSn,
291 'user_id' => $UserId, 296 'user_id' => $UserId,