瀏覽代碼

用户的ip获取的地址,开箱子记录派对id

lizhen_gitee 1 年之前
父節點
當前提交
ae19422a6f

+ 1 - 0
application/api/controller/Eggnew.php

@@ -208,6 +208,7 @@ class Eggnew extends Api
                 // 保存砸蛋记录
                 $data[] = [
                     "do_no" => $do_no,
+                    "party_id" => $party_id,
                     "user_id" => $user_id,
                     "gift_id" => $v["gift_id"],
                     "egg_gift_id" => $v["id"],

+ 1 - 1
application/api/controller/Usercenter.php

@@ -44,7 +44,7 @@ class UserCenter extends Common
         // 获取基本信息
         $where = [];
         $where["id"] = $user_id;
-        $userInfo = $this->userModel->field("id,nickname,image,mobile,avatar,gender,money,age,u_id,level,jewel,age_id,constellation_id,province_id,city_id,desc")->where($where)->find();
+        $userInfo = $this->userModel->field("id,nickname,image,mobile,avatar,gender,money,age,u_id,level,jewel,age_id,constellation_id,province_id,city_id,desc,ipaddress")->where($where)->find();
         // 获取技能信息
         $skillList = Model("ViewUserSkill")->getSkillInfo($user_id);
         $userInfo["skill"] = implode("/",$skillList);

+ 1 - 1
application/common/library/Auth.php

@@ -27,7 +27,7 @@ class Auth
     //默认配置
     protected $config = [];
     protected $options = [];
-    protected $allowFields = ['id', 'u_id', 'username', 'nickname', 'mobile', 'pre_userid', 'has_info', 'is_auth', 'is_anchor', 'is_guild', 'guild_id', 'avatar', 'empirical', 'image', 'money', 'level', 'gender', 'age', 'jewel'];
+    protected $allowFields = ['id', 'u_id', 'username', 'nickname', 'mobile', 'pre_userid', 'has_info', 'is_auth', 'is_anchor', 'is_guild', 'guild_id', 'avatar', 'empirical', 'image', 'money', 'level', 'gender', 'age', 'jewel','ipaddress'];
 
     public function __construct($options = [])
     {