feat(withdraw): 落地方案B一体化商城余额提现与手续费内扣模式,完善多端打款退款与对账闭环

这个提交包含在:
chen
2026-09-20 14:35:38 +08:00
父节点 bee5288e88
当前提交 2b7c34c7f7
共有 65 个文件被更改,包括 3554 次插入 和 579 次删除

查看文件

@@ -104,8 +104,12 @@ class ScoreShop extends Common
}
public function skus($goods_id)
public function skus($goods_id = null)
{
if (empty($goods_id)) {
$goods_id = $this->request->param('goods_id');
}
$goods = $this->goodsModel->where('id', $goods_id)->find();
$skus = SkuModel::with('children')->where('goods_id', $goods_id)->where('parent_id', 0)->order('weigh', 'desc')->order('id', 'asc')->select();
$skuPrices = SkuPriceModel::with(['score_sku_price'])->where('goods_id', $goods_id)->order('weigh', 'desc')->order('id', 'asc')->select();
@@ -125,6 +129,7 @@ class ScoreShop extends Common
}
$this->success('获取成功', null, [
'goods' => $goods,
'skus' => $skus,
'sku_prices' => $skuPrices,
'score_sku_prices' => $scoreSkuPrices
@@ -137,6 +142,9 @@ class ScoreShop extends Common
*/
public function edit($goods_id = null)
{
if (empty($goods_id)) {
$goods_id = $this->request->param('goods_id');
}
if (!$this->request->isAjax()) {
return $this->view->fetch('add');
}