|
|
@@ -97,7 +97,13 @@ class ApplyController extends BaseController
|
|
|
$transaction = $connection->beginTransaction();
|
|
|
try {
|
|
|
//增加或更新申请
|
|
|
- ApplyService::replaceRetail($post);
|
|
|
+ $respond = ApplyService::replaceRetail($post);
|
|
|
+
|
|
|
+ $id = $respond['id'] ?? 0;
|
|
|
+ if (!empty($id)) {
|
|
|
+ ApplyService::pass($id);
|
|
|
+ }
|
|
|
+
|
|
|
$transaction->commit();
|
|
|
} catch (\Exception $exception) {
|
|
|
$transaction->rollBack();
|