feature/main20240421
郭嘉 6 months ago
parent aaefee8a72
commit 275047fb88
  1. 2
      app/api/controller/Category.php
  2. 2
      app/common/model/Merchant.php

@ -68,7 +68,7 @@ class Category extends Controller
} else { } else {
return $this->renderSuccess(compact('list')); return $this->renderSuccess(compact('list'));
} }
if (!empty($arr)) { if (!empty($arr)) {
$arr1 = ['cataIds' => $arr]; $arr1 = ['cataIds' => $arr];
} else { } else {

@ -145,7 +145,7 @@ class Merchant extends BaseModel
* @param float $money * @param float $money
* @return mixed * @return mixed
*/ */
public static function setIncTotal(int $merchantId, float $money) public static function setIncTotal(int $merchantId, $money)
{ {
(new static)->setInc($merchantId, 'total_amount', $money); (new static)->setInc($merchantId, 'total_amount', $money);
(new static)->setInc($merchantId, 'available_amount', $money); (new static)->setInc($merchantId, 'available_amount', $money);

Loading…
Cancel
Save