作者 开飞机的舒克

后台修改

@@ -85,11 +85,12 @@ class Activity extends Api @@ -85,11 +85,12 @@ class Activity extends Api
85 "code":"状态码", 85 "code":"状态码",
86 "msg": "提示消息", 86 "msg": "提示消息",
87 "data": { 87 "data": {
88 - "school": [学校]  
89 - "ronda": [  
90 - "item": 项目  
91 - "item_details": 项目详情  
92 - ] 88 + "campus_title": "校区名称",
  89 + "ronda_title": "场次",
  90 + "ronda_holdtime": "场次时间",
  91 + "title": "项目名称",
  92 + "images": "项目图片",
  93 + "details": "项目详情"
93 } 94 }
94 }) 95 })
95 */ 96 */
@@ -103,7 +104,7 @@ class Activity extends Api @@ -103,7 +104,7 @@ class Activity extends Api
103 ->join('item_details d','d.item_id = i.id') 104 ->join('item_details d','d.item_id = i.id')
104 ->join('ronda r','i.ronda_id = r.id') 105 ->join('ronda r','i.ronda_id = r.id')
105 ->join('campus c','c.id = i.campus_id') 106 ->join('campus c','c.id = i.campus_id')
106 - ->field('c.title as campus_title,i.title,i.details,d.images,r.title as ronda_title,r.holdtime as ronda_holdtime') 107 + ->field('c.title as campus_title,r.title as ronda_title,r.holdtime as ronda_holdtime,i.title,d.images,i.details')
107 ->where('i.campus_id',$id) 108 ->where('i.campus_id',$id)
108 ->paginate(10) 109 ->paginate(10)
109 ->each(function ($item,$key){ 110 ->each(function ($item,$key){
@@ -124,11 +125,9 @@ class Activity extends Api @@ -124,11 +125,9 @@ class Activity extends Api
124 "code":"状态码", 125 "code":"状态码",
125 "msg": "提示消息", 126 "msg": "提示消息",
126 "data": { 127 "data": {
127 - "school_name": 校区信息{},  
128 - "ronda": 场次信息{  
129 - "data": [{  
130 - "item": 场次对应的项目信息{},  
131 - ]} 128 + "campus_title": "校区名称",
  129 + "images": "项目图片",
  130 + "details": "项目详情"
132 }) 131 })
133 */ 132 */
134 public function getItemDetails() 133 public function getItemDetails()
@@ -141,6 +140,6 @@ class Activity extends Api @@ -141,6 +140,6 @@ class Activity extends Api
141 ->where('i.id', $id) 140 ->where('i.id', $id)
142 ->find(); 141 ->find();
143 $data['images'] = cdnurl($data['images'], true); 142 $data['images'] = cdnurl($data['images'], true);
144 - $this->success('', $data); 143 + $this->success('获取项目详情成功', $data);
145 } 144 }
146 } 145 }
@@ -2161,11 +2161,12 @@ @@ -2161,11 +2161,12 @@
2161 "code":"状态码", 2161 "code":"状态码",
2162 "msg": "提示消息", 2162 "msg": "提示消息",
2163 "data": { 2163 "data": {
2164 - "school": [学校]  
2165 - "ronda": [  
2166 - "item": 项目  
2167 - "item_details": 项目详情  
2168 - ] 2164 + "campus_title": "校区名称",
  2165 + "ronda_title": "场次",
  2166 + "ronda_holdtime": "场次时间",
  2167 + "title": "项目名称",
  2168 + "images": "项目图片",
  2169 + "details": "项目详情"
2169 } 2170 }
2170 }</pre> 2171 }</pre>
2171 </div> 2172 </div>
@@ -2327,11 +2328,9 @@ @@ -2327,11 +2328,9 @@
2327 "code":"状态码", 2328 "code":"状态码",
2328 "msg": "提示消息", 2329 "msg": "提示消息",
2329 "data": { 2330 "data": {
2330 - "school_name": 校区信息{},  
2331 - "ronda": 场次信息{  
2332 - "data": [{  
2333 - "item": 场次对应的项目信息{},  
2334 - ]} 2331 + "campus_title": "校区名称",
  2332 + "images": "项目图片",
  2333 + "details": "项目详情"
2335 }</pre> 2334 }</pre>
2336 </div> 2335 </div>
2337 </div> 2336 </div>
@@ -4814,7 +4813,7 @@ @@ -4814,7 +4813,7 @@
4814 4813
4815 </div> 4814 </div>
4816 <div class="col-md-6" align="right"> 4815 <div class="col-md-6" align="right">
4817 - Generated on 2023-03-13 09:52:10 <a href="./" target="_blank">校园活动</a> 4816 + Generated on 2023-03-13 09:57:22 <a href="./" target="_blank">校园活动</a>
4818 </div> 4817 </div>
4819 </div> 4818 </div>
4820 4819