ソースを参照

更新任务卡步骤数据.

gwang 4 年 前
コミット
a8ef7d989d

+ 1 - 1
Gameserver/Amfphp/Services/AppServer.php

@@ -86,7 +86,7 @@ class AppServer {
                 (isset($req->userInfo) ? (tsDay() - tsDay($req->userInfo->game->baseInfo->firstLogin)) : 0), #  # ps.留存天数
                 JsonUtil::encode($req->paras), #                                # req->paras
                 JsonUtil::encode($resp->result)); #                             # resp->result
-        daoInst()->query($sql);                                                 # 执行sql
+        daoInst()->exec($sql);                                                 # 执行sql
     }
 
     /**

+ 17 - 1
Gameserver/Amfphp/configs/GameConfig.php

@@ -6,7 +6,7 @@ namespace loyalsoft;
 // 由CodeGenerator创建。
 // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
 // author: gwang 
-// 日期: 2020-11-12 11:48:48
+// 日期: 2020-11-13 11:48:05
 ////////////////////
 
 /**
@@ -372,6 +372,22 @@ class GameConfig {
         return self::get_hash_item('service_schedule', $itemid);
     }
 
+    /**
+     * 任务步骤
+     * @return \task_step
+     */
+    public static function task_step() {
+        static $a = null;
+        return self::initValue($a, 'task_step');
+    }
+
+    /**
+     * @return \sm_task_step task_step item数据 
+     */
+    public static function task_step_getItem($itemid) {
+        return self::get_hash_item('task_step', $itemid);
+    }
+
     /**
      * 任务卡
      * @return \item_taskcard

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

@@ -4,7 +4,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2020-11-12 14:11:05
+ // 日期: 2020-11-13 11:48:05
 ////////////////////
 
 /**
@@ -368,6 +368,22 @@ class GameConfig {
         return self::get_hash_item('service_schedule', $itemid);
     }
     /**
+    * 任务步骤
+    * @return \task_step
+    */
+    public static function task_step()
+    { 
+        static $a = null; 
+        return self::initValue($a, 'task_step');
+    }
+    /**
+    * @return \sm_task_step task_step item数据 
+    */
+    public static function task_step_getItem($itemid)
+    { 
+        return self::get_hash_item('task_step', $itemid);
+    }
+    /**
     * 任务卡
     * @return \item_taskcard
     */

+ 13 - 17
Gameserver/Amfphp/model/Const/sm_item_taskcard.php

@@ -4,7 +4,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2020-11-06 15:39:34
+ // 日期: 2020-11-12 18:07:29
 ////////////////////
 
 
@@ -20,9 +20,9 @@ class sm_item_taskcard
     public $typeId;
 
     /**
-    * @var String 任务类型: 1. 杀怪, 2. 拾取道具 default(0) 
+    * @var String 任务类型: 1. 串 2. 并 default(0) 
     */
-    public $taskType;
+    public $stepType;
 
     /**
     * @var String 任务名称 default(0) 
@@ -34,30 +34,26 @@ class sm_item_taskcard
     */
     public $taskDesc;
 
-    /**
-    * @var String 任务目标 default(0) 
-    */
-    public $taskTaget;
-
     /**
     * @var Int32 任务标签(主线,支线...)  
     */
     public $tab;
 
     /**
-    * @var String 前往功能模块 default(0) 
-    */
-    public $goto_module;
-
-    /**
-    * @var String 完成任务所需的第一个参数  
+    * @var String 常规任务卡--浅绿色
+    *  日常任务卡--深绿色
+    *  隐藏关卡任务卡--深蓝色
+    *  隐藏剧情任务卡--浅蓝色
+    *  言灵任务卡--紫色
+    *  言灵进阶任务卡--橙色
+    *  限时任务卡--红色  
     */
-    public $canshu1;
+    public $color;
 
     /**
-    * @var String 完成任务所需的第二个参数  
+    * @var String 任务步骤:逗号分隔 default(0) 
     */
-    public $canshu2;
+    public $tasksteps;
 
     /**
     * @var String 完成任务后的奖励物品id,num;id,num  

+ 53 - 0
Gameserver/Amfphp/model/Const/sm_task_step.php

@@ -0,0 +1,53 @@
+<?php
+
+////////////////////
+ // 由CodeGenerator创建。
+ // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
+ // author: gwang 
+ // 日期: 2020-11-12 18:06:56
+////////////////////
+
+
+/**
+ * Static Model task_step 任务步骤
+ */
+class sm_task_step
+{
+
+    /**
+    * @var Int32 任务分支id  
+    */
+    public $typeId;
+
+    /**
+    * @var String 任务名称  
+    */
+    public $name;
+
+    /**
+    * @var String 前往功能模块  
+    */
+    public $goto_module;
+
+    /**
+    * @var String 任务描述  
+    */
+    public $desc;
+
+    /**
+    * @var String 任务类型: 1 杀怪 2 获得道具 3 跟NPC交谈  
+    */
+    public $tasktype;
+
+    /**
+    * @var String 完成任务所需的第一个参数  
+    */
+    public $canshu1;
+
+    /**
+    * @var String 完成任务所需的第二个参数  
+    */
+    public $canshu2;
+
+}
+

+ 1 - 1
Gameserver/Amfphp/process/UserProc.php

@@ -583,7 +583,7 @@ class UserProc {
         $value = base64_encode(gzdeflate(JsonUtil::encode($req->userInfo)));    # blob数据,序列化下
         $sql = sprintf("call insertUserInfo('%s', %d, %d, '%s');", #            # 所以直接将序列化后的结果存进去吧,
                 $req->uid, $req->zoneid, $tsday, $value);                       # zoneid, uid, tsday
-        daoInst()->query($sql);                                                 # 也可以用exec($sql)
+        daoInst()->exec($sql);                                                  # 也可以用exec($sql)
     }
 
 // </editor-fold>

+ 1 - 1
Gameserver/Amfphp/service_call/mergemem/decodeCMemDump_v2.2.php

@@ -75,7 +75,7 @@ function output($key, $value) {
             $tsday = day($userinfo->user->ts);
             $info = base64_encode(gzcompress($value));
             $SQL = sprintf("call mgodpay.insertUserInfo('%s',%d,%d,'%s');", $uid, $zoneid, $tsday, $info);
-            daoInst()->query($SQL)->exec();
+            daoInst()->exec($SQL);
             echo $key . "\r\n";
             return;
         }

+ 1 - 1
Gameserver/Amfphp/service_call/mergemem/decodeCMemDump_v2.php

@@ -70,7 +70,7 @@ function output($key, $value) {
             $tsday = day($userinfo->user->ts);
             $info = bin2hex(gzdeflate($value));
             $SQL = sprintf("call mgodpay.insertUserInfo('%s',%d,%d,'%s');", $uid, $zoneid, $tsday, $info);
-            daoInst()->query($SQL)->exec();
+            daoInst()->exec($SQL);
             echo $key . "\r\n";
             return;
         }

+ 0 - 3
Gameserver/Amfphp/test.php

@@ -9,6 +9,3 @@ echo ("phpver: " . PHP_VERSION . PHP_EOL);
 //require_once ROOTDIR . '/Util/OpenSSLVerify.php';                             # Ps. 这个文件和类名没有对应关系.
 //header('X-Accel-Buffering: no');                                              # nginx 控制头, 关闭buffer
 
-
-
-Err("我错了");

+ 0 - 18
Gameserver/Amfphp/util/CommUtil.php

@@ -43,24 +43,6 @@ class CommUtil {
         return gzinflate(base64_decode($data));
     }
 
-    /**
-     * 创建唯一的订单编号
-     * @return type
-     * @throws Exception
-     */
-    public static function CreateOrderId($zoneid, $day) {
-        if (true) {                                                             # use redis
-            $key = MemKey_GameRun::Game_UserRecordByZone($zoneid, $day);
-            $id = gMem()->increment($key);
-            if (false === $id) {
-                throw new \Exception('create order id failed!', '101');
-            }
-            return $id;
-        } else {                                                                # use mysql
-            daoInst()->query("show table status like ''");
-        }
-    }
-
     /**
      *
      * @param int $min

+ 0 - 10
Gameserver/nbproject/private/private.xml

@@ -12,17 +12,7 @@
     </editor-bookmarks>
     <open-files xmlns="http://www.netbeans.org/ns/projectui-open-files/2">
         <group>
-            <file>file:/D:/local_svn/0_ylsj2019/ylsj2019Server/Gameserver/Amfphp/test.php</file>
-            <file>file:/D:/local_svn/0_ylsj2019/ylsj2019Server/Gameserver/Amfphp/process/PayProc/YuanBaoPayProc.php</file>
-            <file>file:/D:/local_svn/0_ylsj2019/ylsj2019Server/Gameserver/Amfphp/model/User/StoreModel.php</file>
-            <file>file:/D:/local_svn/0_ylsj2019/ylsj2019Server/Gameserver/Amfphp/model/User/UserTaskInfo.php</file>
-            <file>file:/D:/local_svn/0_ylsj2019/ylsj2019Server/Gameserver/Amfphp/process/HeroProc.php</file>
-            <file>file:/D:/local_svn/0_ylsj2019/ylsj2019Server/Gameserver/Amfphp/process/SystemProc.php</file>
-            <file>file:/D:/local_svn/0_ylsj2019/ylsj2019Server/Gameserver/Amfphp/base/ErrCode.php</file>
             <file>file:/D:/local_svn/0_ylsj2019/ylsj2019Server/Gameserver/Amfphp/process/StoreProc.php</file>
-            <file>file:/D:/local_svn/0_ylsj2019/ylsj2019Server/Gameserver/Amfphp/util/JsonUtil.php</file>
-            <file>file:/D:/local_svn/0_ylsj2019/ylsj2019Server/Gameserver/Amfphp/main.php</file>
-            <file>file:/D:/local_svn/0_ylsj2019/ylsj2019Server/Gameserver/Amfphp/model/User/TaskInfo.php</file>
         </group>
     </open-files>
 </project-private>