@ -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);
//累计商户余额支付金额