فهرست منبع

商城bug修复

cyzhao 1 سال پیش
والد
کامیت
55b9e7a72d
1فایلهای تغییر یافته به همراه4 افزوده شده و 1 حذف شده
  1. 4 1
      Gameserver/App/process/ShopProc.php

+ 4 - 1
Gameserver/App/process/ShopProc.php

@@ -87,7 +87,9 @@ class ShopProc {
                 
                 $allDic = $user->privateState->junbeiShop_AllNumRecord;
                 if(!StlUtil::dictHasProperty($allDic, $typeId)){
-                    $allDic->$typeId = new Ins_JunBeiShop();
+                    $junbei = new Ins_JunBeiShop();
+                    $junbei->typeId = $typeId;
+                    $allDic->$typeId = $junbei;
                     $user->privateState->junbeiShop_AllNumRecord =$allDic;
                 }
                 
@@ -303,6 +305,7 @@ class ShopProc {
                 break;
         }
               
+        ctx() = $user;
         UserProc::updateUserInfo();
         return Resp::ok(array(         
                     'equip'=>$equip,