Browse Source

活动改成多个图

lizhen_gitee 1 year ago
parent
commit
75339dc49a
1 changed files with 3 additions and 0 deletions
  1. 3 0
      application/api/controller/Active.php

+ 3 - 0
application/api/controller/Active.php

@@ -57,6 +57,9 @@ class Active extends Api
         $info = info_domain_image($info,['images']);
         $info['tags'] = !empty($info['tags']) ? explode(',',$info['tags']) : [];
 
+        //第一个图
+        $info['image'] = isset($info['images'][0]) ? $info['images'][0] : '';
+
         //几人已报名
         $info['payednumber'] = Db::name('order')->where('active_id',$id)->where('status',1)->count();