cqp 3 päivää sitten
vanhempi
sitoutus
ea3515060a

+ 3 - 1
app/Service/CustomerSupplyService.php

@@ -93,6 +93,8 @@ class CustomerSupplyService extends Service
             //更新绑定关系
             (new WxEmployeeService())->updateWxEmployeeOfficial2($data['mobile']);
 
+            $id = $model->id;
+
             DB::commit();
         }catch (\Exception $exception){
             DB::rollBack();
@@ -102,7 +104,7 @@ class CustomerSupplyService extends Service
             return [false,$exception->getMessage()];
         }
 
-        return [true, ''];
+        return [true, ['id' => $id]];
     }
 
     private function createPassword(){

+ 2 - 1
app/Service/OrderService.php

@@ -68,13 +68,14 @@ class OrderService extends Service
             
             $this->saveDetail($model->id, time(), $data);
 
+            $id = $model->id;
             DB::commit();
         }catch (\Exception $exception){
             DB::rollBack();
             return [false,$exception->getMessage()];
         }
 
-        return [true, ''];
+        return [true, ['id' => $id]];
     }
 
     private function saveDetail($id, $time, $data){

+ 2 - 1
app/Service/OrganizationService.php

@@ -68,6 +68,7 @@ class OrganizationService extends Service
 
             $this->saveDetail($model->id, time(), $data);
 
+            $id = $model->id;
             DB::commit();
         }catch (\Exception $exception){
             DB::rollBack();
@@ -77,7 +78,7 @@ class OrganizationService extends Service
             return [false,$exception->getMessage()];
         }
 
-        return [true, ''];
+        return [true, ['id' => $id]];
     }
 
     private function saveDetail($id, $time, $data){