```
feat(split): 添加微信分账V3版本验证和汇付分账冻结资金处理 - 在ProfitSharingService中添加Yansongda Pay V3版本验证,确保微信官方分账功能正常运行 - 实现汇付分账冻结资金检测逻辑,当资金被冻结时标记分账失败而非抛出异常 - 在管理后台控制器中增强错误处理和状态显示功能 - 优化前端界面,根据分账模式动态显示相应操作按钮 ```
这个提交包含在:
@@ -3,6 +3,7 @@
|
||||
namespace app\admin\controller\shopro\split;
|
||||
|
||||
use app\admin\controller\shopro\Base;
|
||||
use addons\shopro\library\split\Config as SplitConfig;
|
||||
use addons\shopro\library\split\ProfitSharingService;
|
||||
|
||||
class Receiver extends Base
|
||||
@@ -24,6 +25,7 @@ class Receiver extends Base
|
||||
$list = $this->model->where($where)->order($sort, $order)->limit($offset, $limit)->select();
|
||||
return $this->success('操作成功', null, ['total' => $total, 'rows' => $list]);
|
||||
}
|
||||
$this->assignconfig('splitHuifuOnly', (new SplitConfig())->isHuifuMode());
|
||||
return $this->view->fetch();
|
||||
}
|
||||
|
||||
@@ -71,6 +73,9 @@ class Receiver extends Base
|
||||
if (!$row) {
|
||||
$this->error('记录不存在');
|
||||
}
|
||||
if ((new SplitConfig())->isHuifuMode()) {
|
||||
$this->error('当前为汇付分账:无需同步微信接收方。请在汇付控台绑定分账关系,并在此填写 huifu_id');
|
||||
}
|
||||
try {
|
||||
$service = new ProfitSharingService();
|
||||
$service->addReceiver([
|
||||
|
||||
在新工单中引用
屏蔽一个用户