feature/main20240421
郭嘉 6 months ago
parent 5984f753d5
commit 6f511d649a
  1. 3
      app/api/controller/Category.php
  2. 2
      app/api/service/order/PaySuccess.php

@ -55,6 +55,7 @@ class Category extends Controller
public function listmerchant(): Json
{
$list = [];
$merchantId = (int)$this->request->param('merchantId', 0);
$model = new CategoryModel;
$hasGoods = GoodsCategoryRel::getcategory($this->storeId,$merchantId);
@ -64,6 +65,8 @@ class Category extends Controller
foreach ($hasGoods as $v) {
$arr[] = $v['category_id'];
}
} else {
return $this->renderSuccess(compact('list'));
}
if (!empty($arr)) {

@ -360,7 +360,7 @@ class PaySuccess extends BaseService
if ($model['commission_ratio']) {
$precent = (1 - $model['commission_ratio'] / 1000);
}
$precentPrice = $precent * $orderInfo['pay_price'];
$precentPrice = round($precent * $orderInfo['pay_price'], 2);
(new merchantPayModel())->addDetail($orderInfo, $precentPrice);
//累计商户余额支付金额

Loading…
Cancel
Save