Prechádzať zdrojové kódy

fixed: 解锁记录.

gwang 4 rokov pred
rodič
commit
15ab74a020

+ 1 - 1
Gameserver/Amfphp/model/Const/GameConfig.php

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2021-04-02 14:44:30
+ // 日期: 2021-04-02 17:33:39
 ////////////////////
 
 /**

+ 1 - 1
Gameserver/Amfphp/model/Const/sm_plot.php

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2021-04-02 14:43:48
+ // 日期: 2021-04-02 17:28:52
 ////////////////////
 
 

+ 5 - 0
Gameserver/Amfphp/process/TaskProc.php

@@ -218,7 +218,10 @@ class TaskProc {
     static function PlotFinish($req) {
         list($gate_or_npc_id, $stage) = $req->paras;
         $bUpdate = self::OnPlotOver($gate_or_npc_id, $stage);                   # 触发一下任务检查,更新任务状态
+//        var_dump($gate_or_npc_id);
+//        var_dump($stage);
         $arr = GameConfig::plot_getItem($gate_or_npc_id, $stage);               # 查找对应的剧情
+//        var_dump($arr);
         foreach ($arr as $plot) {
             isEditor() and $plot = new \sm_plot();
             if (!empty($plot->presentItem)) {
@@ -237,6 +240,7 @@ class TaskProc {
                 StoreProc::removeItemFromStore(req()->userInfo->game->store, $val[0], $val[1]);
             }
         }
+        UserProc::updateUserInfo();
         return Resp::ok(array('store' => $req->userInfo->game->store,
                     'taskCardUpdate' => $bUpdate));
     }
@@ -428,6 +432,7 @@ class TaskProc {
                 }
             }
         }
+        UserProc::updateUserInfo();
         return Resp::ok(array('store' => $req->userInfo->game->store));         # 返回值更新背包
     }