|
@@ -637,7 +637,11 @@ class CustomerService extends Service
|
|
public function customerGrabbing($data, $user){
|
|
public function customerGrabbing($data, $user){
|
|
$key = Customer::$limitKey . $data['customer_id'];
|
|
$key = Customer::$limitKey . $data['customer_id'];
|
|
list($status,$msg) = $this->customerGrabbingRule($data,$key);
|
|
list($status,$msg) = $this->customerGrabbingRule($data,$key);
|
|
- if(! $status) return [false,$msg];
|
|
|
|
|
|
+ if(! $status) {
|
|
|
|
+ //释放锁
|
|
|
|
+ $this->dellimitingSendRequestBackg($key);
|
|
|
|
+ return [false,$msg];
|
|
|
|
+ }
|
|
|
|
|
|
try {
|
|
try {
|
|
DB::beginTransaction();
|
|
DB::beginTransaction();
|