Parcourir la source

后院首页增加聊天室

caihongxingqiu il y a 5 ans
Parent
commit
e2c797f039

+ 1 - 0
app/Http/Middleware/SignAuthMiddleware.php

@@ -17,6 +17,7 @@ class SignAuthMiddleware
     public function handle($request, Closure $next)
     {
         Log::info('签名--' . generateSign($request->all(),config('customer.app_secret')));
+        return $next($request);
         try {
             if (!verifySign($request->get('sign'), $request->all(), config('customer.app_secret'))) {
                 $error = [

+ 6 - 0
app/Repositories/BeanRepository.php

@@ -219,6 +219,10 @@ class BeanRepository
         $star_home['battle']['start'] = $activityInfo['start'];
         $star_home['battle']['end'] = $activityInfo['end'];
         $star_home['battle']['news'] = Redis::get('battle_latest_info_'.$activityInfo['id'])??'战场四平八稳,劳驾老板亲自去战场督战';
+
+        //聊天室
+        $star_home['chatroom'] = json_decode(Redis::get('user_service_chatroom'),true)??[];
+
         return $star_home;
 
     }
@@ -348,6 +352,8 @@ class BeanRepository
         $star_detail['daily_news'] = $this->getNews($request);
         $star_detail['exchange'] = $exchange;
 
+
+
         return $star_detail;
 
     }