浏览代码

Merge branch 'develop'

xielin 5 年之前
父节点
当前提交
7c9e4ff21f
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      app/Repositories/BeanRepository.php

+ 4 - 4
app/Repositories/BeanRepository.php

@@ -215,10 +215,10 @@ class BeanRepository
         $star_home['user']['username'] = $userInfo['username'];
         $star_home['user']['avatar'] = $userInfo['avatar'];
         //battle信息
-//        $activityInfo = $this->getActivity();
-//        $star_home['battle']['start'] = $activityInfo['start'];
-//        $star_home['battle']['end'] = $activityInfo['end'];
-//        $star_home['battle']['news'] = Redis::get('battle_latest_info_'.$activityInfo['id'])??'战场四平八稳,劳驾老板亲自去战场督战';
+        $activityInfo = $this->getActivity();
+        $star_home['battle']['start'] = $activityInfo['start'];
+        $star_home['battle']['end'] = $activityInfo['end'];
+        $star_home['battle']['news'] = Redis::get('battle_latest_info_'.$activityInfo['id'])??'战场四平八稳,劳驾老板亲自去战场督战';
         return $star_home;
 
     }