浏览代码

礼物墙

lizhen_gitee 6 月之前
父节点
当前提交
9e45221b3a
共有 2 个文件被更改,包括 16 次插入4 次删除
  1. 8 2
      application/api/controller/Usercenter.php
  2. 8 2
      application/common/library/Auth.php

+ 8 - 2
application/api/controller/Usercenter.php

@@ -285,11 +285,17 @@ class Usercenter extends Api
         }
 
         if(empty($gift_user_typing) && !empty($gift_user_dongtai)){
-            return $gift_user_dongtai;
+            foreach($gift_user_dongtai as $key => $val){
+                $result[] = $val;
+            }
+            return $result;
         }
 
         if(!empty($gift_user_typing) && empty($gift_user_dongtai)){
-            return $gift_user_typing;
+            foreach($gift_user_typing as $key => $val){
+                $result[] = $val;
+            }
+            return $result;
         }
 
         //合并

+ 8 - 2
application/common/library/Auth.php

@@ -864,11 +864,17 @@ class Auth
         }
 
         if(empty($gift_user_typing) && !empty($gift_user_dongtai)){
-            return $gift_user_dongtai;
+            foreach($gift_user_dongtai as $key => $val){
+                $result[] = $val;
+            }
+            return $result;
         }
 
         if(!empty($gift_user_typing) && empty($gift_user_dongtai)){
-            return $gift_user_typing;
+            foreach($gift_user_typing as $key => $val){
+                $result[] = $val;
+            }
+            return $result;
         }
 
         //合并