样式设置

feature/main20240421
guojia 7 months ago
parent 75e690d991
commit 6e6bdd4f54
  1. 7
      app/api/controller/Merchant.php
  2. 2
      app/store/controller/Order.php

@ -77,6 +77,13 @@ class Merchant extends Controller
} }
public function detail(int $merchantId): Json
{
// 获取商品详情
$detail = MerchantModel::detail($merchantId);
return $this->renderSuccess(compact('detail'));
}
/** /**
* 更新商城信息 * 更新商城信息
* @return Json * @return Json

@ -32,7 +32,7 @@ class Order extends Controller
// 订单列表 // 订单列表
$model = new OrderModel; $model = new OrderModel;
$params = $this->request->param(); $params = $this->request->param();
$params['merchant_id'] = $this->merchantId; $params['merchantId'] = $this->merchantId;
$result = $model->getList($params); $result = $model->getList($params);
$data = $result->items(); $data = $result->items();
if (!empty($data)) { if (!empty($data)) {

Loading…
Cancel
Save