wugg 8 months ago
parent
commit
2cc7ab78c7
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/txx/controller/Activity.php

+ 2 - 2
app/txx/controller/Activity.php

@@ -114,7 +114,7 @@ class Activity extends Base{
         if($param['roundId']!==""){
             $where[]=["roundId","=",$param['roundId']];
         }
-        $list= $this->model->with(["act","platformYz"=>["platform","good"],"promocode"])->where($where)->order("id desc")->paginate(["list_rows"=>$param['size'],"page"=>$param['page']]);
+        $list= $this->model->with(["act","platformYz"=>["platform","good"=>['unit','brand','category']],"promocode"])->where($where)->order("id desc")->paginate(["list_rows"=>$param['size'],"page"=>$param['page']]);
         $list->each(function($item,$key){
             $item['status_cn']=ActGood::$statusCn[$item['status']]??"";
             $item['act_status_cn']=\app\txx\model\Act::$statusCn[$item['act_status']]??"";
@@ -124,7 +124,7 @@ class Activity extends Base{
     }
     public function info(){
         $param=$this->request->param(["id"=>""],"post","trim");
-        $info= $this->model->with(["act","platformYz"=>["platform","good"],"promocode"])->findOrEmpty($param['id']);
+        $info= $this->model->with(["act","platformYz"=>["platform","good"=>['unit','brand','category']],"promocode"])->findOrEmpty($param['id']);
         if($info->isEmpty()){
             $this->error("信息有误");
         }