|
@@ -6,7 +6,7 @@ namespace loyalsoft;
|
|
// 由CodeGenerator创建。
|
|
// 由CodeGenerator创建。
|
|
// Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
|
|
// Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
|
|
// author: gwang
|
|
// author: gwang
|
|
-// 日期: 2020-05-09 14:08:57
|
|
|
|
|
|
+// 日期: 2020-07-08 16:38:44
|
|
////////////////////
|
|
////////////////////
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -47,9 +47,7 @@ class GameConfig {
|
|
$key = 'gamecfg-' . $modelName . self::zoneid();
|
|
$key = 'gamecfg-' . $modelName . self::zoneid();
|
|
if (is_null($a)) {
|
|
if (is_null($a)) {
|
|
if (self::isCG()) {
|
|
if (self::isCG()) {
|
|
-// var_dump("including " . $key . ".php");
|
|
|
|
$a = include $key . '.php';
|
|
$a = include $key . '.php';
|
|
-// var_dump($a);
|
|
|
|
} else {
|
|
} else {
|
|
$a = $isHash ? gMem()->hgetall($key) : gMem()->get($key);
|
|
$a = $isHash ? gMem()->hgetall($key) : gMem()->get($key);
|
|
}
|
|
}
|
|
@@ -384,13 +382,6 @@ class GameConfig {
|
|
return self::initValue($a, 'choujiang');
|
|
return self::initValue($a, 'choujiang');
|
|
}
|
|
}
|
|
|
|
|
|
- /**
|
|
|
|
- * @return \sm_choujiang choujiang item数据
|
|
|
|
- */
|
|
|
|
- public static function choujiang_getItem($itemid) {
|
|
|
|
- return self::get_hash_item('choujiang', $itemid);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
/**
|
|
/**
|
|
* 无穷无尽关卡模式
|
|
* 无穷无尽关卡模式
|
|
* @return \gate_forever
|
|
* @return \gate_forever
|
|
@@ -600,19 +591,19 @@ class GameConfig {
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
- * 成就任务
|
|
|
|
- * @return \task_achi
|
|
|
|
|
|
+ * 任务节点
|
|
|
|
+ * @return \task_node
|
|
*/
|
|
*/
|
|
- public static function task_achi() {
|
|
|
|
|
|
+ public static function task_node() {
|
|
static $a = null;
|
|
static $a = null;
|
|
- return self::initValue($a, 'task_achi');
|
|
|
|
|
|
+ return self::initValue($a, 'task_node');
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
- * @return \sm_task_achi task_achi item数据
|
|
|
|
|
|
+ * @return \sm_task_node task_node item数据
|
|
*/
|
|
*/
|
|
- public static function task_achi_getItem($itemid) {
|
|
|
|
- return self::get_hash_item('task_achi', $itemid);
|
|
|
|
|
|
+ public static function task_node_getItem($itemid) {
|
|
|
|
+ return self::get_hash_item('task_node', $itemid);
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|