```
feat(shopro_huifu): 优化汇付进件提交异常处理 - 在submitFromDraft方法中添加HttpResponseException捕获并重新抛出 - 在resubmit方法中添加HttpResponseException捕获并重新抛出 - 改进错误消息显示,当异常消息为空时显示默认提示 - 调整代码结构确保成功消息在正确位置返回 ```
这个提交包含在:
@@ -75,10 +75,12 @@ class Onboard extends Base
|
||||
try {
|
||||
$service = new HuifuOnboardService();
|
||||
$service->submitFromDraft($row['user_id'], $row['role_type'], $row['role_ref_id']);
|
||||
$this->success('已提交汇付进件');
|
||||
} catch (\think\exception\HttpResponseException $e) {
|
||||
throw $e;
|
||||
} catch (\Throwable $e) {
|
||||
$this->error($e->getMessage());
|
||||
$this->error($e->getMessage() ?: '提交汇付进件失败');
|
||||
}
|
||||
$this->success('已提交汇付进件');
|
||||
}
|
||||
|
||||
public function add()
|
||||
@@ -180,9 +182,11 @@ class Onboard extends Base
|
||||
try {
|
||||
$service = new HuifuOnboardService();
|
||||
$service->resubmit($row['user_id'], $row['role_type'], $row['role_ref_id'], $payload);
|
||||
$this->success('已重新提交进件');
|
||||
} catch (\think\exception\HttpResponseException $e) {
|
||||
throw $e;
|
||||
} catch (\Throwable $e) {
|
||||
$this->error($e->getMessage());
|
||||
$this->error($e->getMessage() ?: '重新提交进件失败');
|
||||
}
|
||||
$this->success('已重新提交进件');
|
||||
}
|
||||
}
|
||||
|
||||
在新工单中引用
屏蔽一个用户