Browse Source

新版完成

王虎 7 năm trước cách đây
mục cha
commit
31cbc667ec
75 tập tin đã thay đổi với 385 bổ sung9828 xóa
  1. 17 0
      default.config.php
  2. 157 45
      dump.php
  3. 0 423
      dump_bak.php
  4. BIN
      item.xlsx
  5. 0 19
      projects/colorrun/output/choujiang.config.php
  6. 0 43
      projects/colorrun/output/huoyue.config.php
  7. 0 31
      projects/colorrun/output/huoyuereward.config.php
  8. 0 33
      projects/colorrun/output/item.config.php
  9. 0 10
      projects/colorrun/output/meiriyaoqing.config.php
  10. 0 9
      projects/colorrun/output/paihang.config.php
  11. 0 5309
      projects/colorrun/output/road.config.php
  12. 0 87
      projects/colorrun/output/roadcolor.config.php
  13. 0 45
      projects/colorrun/output/signin.config.php
  14. 0 111
      projects/colorrun/output/weiji.config.php
  15. 0 48
      projects/colorrun/output/yaoqing.config.php
  16. 0 553
      projects/colorrun/output/zhuti.config.php
  17. 0 19
      projects/colorrun/script/choujiang.php
  18. 0 19
      projects/colorrun/script/huoyue.php
  19. 0 18
      projects/colorrun/script/huoyuereward.php
  20. 0 17
      projects/colorrun/script/item.php
  21. 0 18
      projects/colorrun/script/meiriyaoqing.php
  22. 0 17
      projects/colorrun/script/paihang.php
  23. 0 25
      projects/colorrun/script/road.php
  24. 0 18
      projects/colorrun/script/roadcolor.php
  25. 0 17
      projects/colorrun/script/signin.php
  26. 0 20
      projects/colorrun/script/weiji.php
  27. 0 20
      projects/colorrun/script/yaoqing.php
  28. 0 22
      projects/colorrun/script/zhuti.php
  29. BIN
      projects/colorrun/source/choujiang.xlsx
  30. BIN
      projects/colorrun/source/huoyue.xlsx
  31. BIN
      projects/colorrun/source/huoyuereward.xlsx
  32. BIN
      projects/colorrun/source/item.xlsx
  33. BIN
      projects/colorrun/source/meiriyaoqing.xlsx
  34. BIN
      projects/colorrun/source/paihang.xlsx
  35. BIN
      projects/colorrun/source/road.xlsx
  36. BIN
      projects/colorrun/source/roadcolor.xlsx
  37. BIN
      projects/colorrun/source/signin.xlsx
  38. BIN
      projects/colorrun/source/weiji.xlsx
  39. BIN
      projects/colorrun/source/yaoqing.xlsx
  40. BIN
      projects/colorrun/source/zhuti.xlsx
  41. 0 1643
      projects/rank/output/rank.config.php
  42. 0 21
      projects/rank/script/rank.php
  43. BIN
      projects/rank/source/rank.xlsx
  44. 0 45
      projects/runball/output/road.config.php
  45. 0 59
      projects/runball/output/sign.config.php
  46. 0 45
      projects/runball/output/theme.config.php
  47. 0 18
      projects/runball/script/road.php
  48. 0 18
      projects/runball/script/sign.php
  49. 0 18
      projects/runball/script/theme.php
  50. BIN
      projects/runball/source/road.xlsx
  51. BIN
      projects/runball/source/sign.xlsx
  52. BIN
      projects/runball/source/theme.xlsx
  53. 0 343
      projects/shot/output/doll.config.php
  54. 0 111
      projects/shot/output/mission.config.php
  55. 0 101
      projects/shot/output/product.config.php
  56. 0 41
      projects/shot/script/doll.php
  57. 0 30
      projects/shot/script/item.php
  58. 0 25
      projects/shot/script/mission.php
  59. 0 30
      projects/shot/script/product.php
  60. BIN
      projects/shot/source/doll.xlsx
  61. BIN
      projects/shot/source/item.xlsx
  62. BIN
      projects/shot/source/mission.xlsx
  63. BIN
      projects/shot/source/product.xlsx
  64. BIN
      projects/test/item.xlsx
  65. 1 0
      projects/test/json/item.json
  66. 68 0
      projects/test/model/Item.php
  67. 142 34
      projects/shot/output/item.config.php
  68. BIN
      projects/test/source/item.xlsx
  69. 0 66
      projects/tww/output/mission.config.php
  70. 0 120
      projects/tww/output/product.config.php
  71. 0 25
      projects/tww/script/mission.php
  72. 0 29
      projects/tww/script/product.php
  73. BIN
      projects/tww/source/mission.xlsx
  74. BIN
      projects/tww/source/product.xlsx
  75. 0 10
      test.php

+ 17 - 0
default.config.php

@@ -0,0 +1,17 @@
+<?php
+
+// 配置
+// 描述对应的行数
+$descLine = 1;
+// 字段名对应的行数(1开始)
+$columnLine = 2;
+// 字段类型对应的行数
+$typeLine = 3;
+// 数据对应的行数(1开始)
+$dataLine = 4;
+// 键值对应的列(1开始)
+$keyColumn = 'item_id';
+// 哪些字段被导出以及导出的格式
+// 空表示全部导出, 不为空表示导出指定的字段
+$columns = [
+];

+ 157 - 45
dump.php

@@ -30,7 +30,8 @@ function explainArgv($argv)
 function usage()
 {
     echo '使用示例:' . PHP_EOL;
-    echo 'php ./dump.php -app=shot -split=false' . PHP_EOL;
+    echo 'php ./dump.php -app=test' . PHP_EOL;
+//    echo 'php ./dump.php -app=test -split=true' . PHP_EOL;
 }
 
 class Dump
@@ -66,13 +67,27 @@ class Dump
     private $outputDir;
 
     /**
+     * 生成json目录
+     */
+    private $jsonDir;
+
+    /**
+     * 生成model目录
+     */
+    private $modelDir;
+
+    /**
+     * 默认配置地址
+     */
+    private $defaultConfigFile;
+
+    /**
      * Dump constructor.
      *
      * @param array $args
      */
     public function __construct($args)
     {
-//        vd(sprintf("$args: %s", var_export($args, true)));
         if (!isset($args['app'])) {
             vd('参数错误');
             usage();
@@ -86,6 +101,8 @@ class Dump
         $this->sourceDir = __DIR__ . self::$DS . 'projects' . self::$DS . $this->appName . self::$DS . 'source';
         $this->scriptDir = __DIR__ . self::$DS . 'projects' . self::$DS . $this->appName . self::$DS . 'script';
         $this->outputDir = __DIR__ . self::$DS . 'projects' . self::$DS . $this->appName . self::$DS . 'output';
+        $this->jsonDir   = __DIR__ . self::$DS . 'projects' . self::$DS . $this->appName . self::$DS . 'json';
+        $this->modelDir  = __DIR__ . self::$DS . 'projects' . self::$DS . $this->appName . self::$DS . 'model';
 
         // 检查目录文件是否缺失
         if (!is_dir($this->sourceDir)) {
@@ -95,8 +112,17 @@ class Dump
             vde('脚本目录缺失:' . $this->scriptDir);
         }
         if (!is_dir($this->outputDir)) {
-            vde('输出目录缺失:' . $this->outputDir);
+            vde('输出配置目录缺失:' . $this->outputDir);
         }
+        if (!is_dir($this->jsonDir)) {
+            vde('输出json目录缺失:' . $this->jsonDir);
+        }
+        if (!is_dir($this->modelDir)) {
+            vde('输出model目录缺失:' . $this->modelDir);
+        }
+
+        // 初始化默认配置文件
+        $this->defaultConfigFile = __DIR__ . self::$DS . 'default.config.php';
     }
 
     /**
@@ -132,39 +158,6 @@ class Dump
         }
 
         vd(sprintf("导出完成,共[%d]个文件, 成功[%d]个文件.", count($files), $success));
-
-
-        /*
-        // 组装导出目录
-        $dumpBase = '..' . self::$DS . '..' . self::$DS . 'output' . self::$DS . $this->appName;
-        self::vd($dumpBase);
-
-        // 找到最后一次导出目录
-        $lastDumpDir = $this->getLastDumpDir($dumpBase);
-        self::vd("Last Dump Dir: " . $lastDumpDir);
-
-        // 获取json文件路径
-        $jsonPath = $lastDumpDir . self::$DS . 'PHP' . self::$DS . $this->dumpName . '.json';
-
-        // 读取json文件,并解析成数组
-        $json = $this->getJsonData($jsonPath);
-
-        // 写配置文件
-        $this->writeData($json, $lastDumpDir, $this->dumpName);
-
-        // 判断此配置文件是否有特殊逻辑
-        $methodName = $this->dumpName . '_handler';
-        if (method_exists($this, $methodName)) {
-            $this->$methodName($json, $lastDumpDir, $this->dumpName);
-            self::vd("{$methodName} Done...");
-        }
-
-        // 删除json文件
-        unlink($jsonPath);
-
-        // 退出
-        self::vd("Dump Done ...", true);
-        */
     }
 
 
@@ -177,10 +170,14 @@ class Dump
     private function dump($fileInfo)
     {
         // 找到文件对应的执行脚本
+        // 如果找不到, 则使用默认的配置
         $script = $this->scriptDir . self::$DS . $fileInfo['filename'] . '.php';
         if (!file_exists($script)) {
             vd(sprintf('[%s]对应的脚本文件不存在, 脚本文件:%s', $fileInfo['basename'], $script));
-            return false;
+            //            return false;
+
+            $script = $this->defaultConfigFile;
+            vd(sprintf('[%s]使用默认配置, 脚本文件:%s', $fileInfo['basename'], $script));
         }
 
         // 引入脚本
@@ -188,12 +185,18 @@ class Dump
 
         // 读取excel文件内容
         $sourceData = $this->getDataFromSource($this->sourceDir . self::$DS . $fileInfo['basename']);
-//        vde($sourceData);
         if (count($sourceData) < $dataLine) {
             vd(sprintf('[%s]文件没有数据', $fileInfo['basename']));
             return false;
         }
 
+        // 如果未设置字段名列, 那么自动生成, 到处所有列
+        if (empty($columns)) {
+            foreach ($sourceData[$columnLine - 1] as $key => $columnName) {
+                $columns[$columnName] = $sourceData[$typeLine - 1][$key];
+            }
+        }
+
         // 处理导出列对应的索引
         $indexes = [];
 //        vd($sourceData[$columnLine - 1]);
@@ -202,7 +205,6 @@ class Dump
                 $indexes[$column] = $index;
             }
         }
-//        vd($indexes);
 
         // 普通处理逻辑
         $data = [];
@@ -245,9 +247,15 @@ class Dump
             $data = $handle($data);
         }
 
-        // 写入文件
-        $outputFile = $this->outputDir . self::$DS . $fileInfo['filename'] . '.config.php';
-        $this->writeFile($outputFile, $data);
+        // 写入PHP文件
+        $this->writePHP($fileInfo['filename'], $data);
+
+        // 生成json文件
+        $this->writeJSON($fileInfo['filename'], $data);
+
+        // 生成model文件
+        $this->writeModel($fileInfo['filename'], $columns);
+
 
         return true;
     }
@@ -268,12 +276,13 @@ class Dump
     /**
      * 写入php文件
      *
-     * @param string $file 写入文件路径
-     * @param string $data 写入文件内容
+     * @param string $filename 写入文件路径
+     * @param array $data      写入文件内容
      * @return void
      */
-    private function writeFile($file, $data)
+    private function writePHP($filename, $data)
     {
+        $file = $this->outputDir . self::$DS . $filename . '.config.php';
         // 写入配置文件
         $configs = var_export($data, true);
         // 整理输出格式
@@ -285,8 +294,111 @@ TXT;
         // 写入导出文件
         file_put_contents($file, $config);
     }
+
+    /**
+     * 生成json文件
+     *
+     * @param string $filename 写入文件名称
+     * @param array $data      待写入的文件内容
+     */
+    private function writeJSON($filename, $data)
+    {
+        $file = $this->jsonDir . self::$DS . $filename . '.json';
+        // 写入导出文件
+        file_put_contents($file, json_encode($data, JSON_UNESCAPED_UNICODE));
+    }
+
+    /**
+     * 写入php model 文件
+     *
+     * @param string $filename 写入文件路径
+     * @param array $columns   字段列表
+     * @return void
+     */
+    private function writeModel($filename, $columns)
+    {
+        $columnString = '"' . join('", "', array_keys($columns)) . '"';
+        $className    = ucwords($filename);
+        $file         = $this->modelDir . self::$DS . $className . '.php';
+        // 整理输出格式
+        $config = <<<TXT
+<?php
+
+class {$className}
+{
+    /**
+     * Returns table name mapped in the model.
+     *
+     * @return string
+     */
+    public static function getSource()
+    {
+        return '{$filename}';
+    }
+
+    /**
+     * 获取导出给客户端所需要的字段
+     *
+     * @return array
+     */
+    public static function getToClientColumns()
+    {
+        // return [{$columnString}];
+        return [];
+    }
+
+    /**
+     * 生成客户端需要的字段, 生成列表
+     *
+     * @return array
+     */
+    public static function getListForClient()
+    {
+        \$data = [];
+        if (empty(self::getToClientColumns())) {
+            \$data = array_values(self::getList());
+        } else {
+            foreach (self::getList() as \$key => \$value) {
+                foreach (\$value as \$k => \$v) {
+                    if (!in_array(\$k, self::getToClientColumns())) {
+                        unset(\$value[\$k]);
+                    }
+                }
+                \$data[] = \$value;
+            }
+        }
+        return \$data;
+    }
+
+    /**
+     * 获取单条配置内容
+     *
+     * @return array
+     */
+    public static function get(\$configId)
+    {
+        return IConfig::get()->loadAppConfig(self::getSource(), \$configId);
+    }
+
+    /**
+     * 获取所有配置
+     *
+     * @return array
+     */
+    public static function getList()
+    {
+        return IConfig::get()->loadAppConfig(self::getSource());
+    }
+}
+
+TXT;
+
+        // 写入导出文件
+        file_put_contents($file, $config);
+    }
 }
 
+
 /*
  * 使用说明
  * php ./dump.php -app=shot -split=false

+ 0 - 423
dump_bak.php

@@ -1,423 +0,0 @@
-<?php
-
-class DumpBak
-{
-    // 文件夹路径符
-    private static $DS = '/';
-    // 是否分子文件夹存储
-    private static $CREATE_PHP_CONFIG_IN_CHILD_DIR = 3;
-    // 是否分子文件存储
-    private static $CREATE_CHILD_PHP_CONFIG = 4;
-
-    /**
-     * @var string
-     */
-    private $appName;
-
-    /**
-     * @var string
-     */
-    private $dumpName;
-
-    /**
-     * 是否需要分子目录
-     *
-     * @var boolean
-     */
-    private $needChildDir = false;
-
-    /**
-     * 是否切割配置文件
-     *
-     * @var boolean
-     */
-    private $needSplitConfig = false;
-
-    /**
-     * Dump constructor.
-     *
-     * @param array $argv
-     */
-    public function __construct($argv)
-    {
-        self::vd(sprintf("argv: %s", var_export($argv, true)));
-        $this->appName  = $argv[1];
-        $this->dumpName = $argv[2];
-        if (isset($argv[3])) {
-            $this->outputOption = $argv['3'];
-        }
-
-        // 初始化是否需要分子目录
-        self::vd(sprintf("outputOption: %s", $this->outputOption));
-        if (!is_null($this->outputOption)) {
-            $this->needChildDir = $this->outputOption & self::$CREATE_PHP_CONFIG_IN_CHILD_DIR;
-        }
-        self::vd(sprintf("needChildDir: %s", var_export($this->needChildDir, true)));
-
-
-        // 初始化是否需要切割配置文件
-        if (!is_null($this->outputOption)) {
-            $this->needSplitConfig = $this->outputOption & self::$CREATE_CHILD_PHP_CONFIG;
-        }
-        self::vd(sprintf("needSplitConfig: %s", var_export($this->needSplitConfig, true)));
-    }
-
-    /**
-     * 执行主函数
-     */
-    public function run()
-    {
-        // 判断参数是否正确
-        self::vd("App Name: {$this->appName}, Dump Name: {$this->dumpName}, Option: {$this->outputOption}");
-        if (!$this->appName || !$this->dumpName) {
-            self::vd("App Name or Dump Name not provided, quit ...", true);
-        }
-
-        // 组装导出目录
-        $dumpBase = '..' . self::$DS . '..' . self::$DS . 'output' . self::$DS . $this->appName;
-        self::vd($dumpBase);
-
-        // 找到最后一次导出目录
-        $lastDumpDir = $this->getLastDumpDir($dumpBase);
-        self::vd("Last Dump Dir: " . $lastDumpDir);
-
-        // 获取json文件路径
-        $jsonPath = $lastDumpDir . self::$DS . 'PHP' . self::$DS . $this->dumpName . '.json';
-
-        // 读取json文件,并解析成数组
-        $json = $this->getJsonData($jsonPath);
-
-        // 写配置文件
-        $this->writeData($json, $lastDumpDir, $this->dumpName);
-
-        // 判断此配置文件是否有特殊逻辑
-        $methodName = $this->dumpName . '_handler';
-        if (method_exists($this, $methodName)) {
-            $this->$methodName($json, $lastDumpDir, $this->dumpName);
-            self::vd("{$methodName} Done...");
-        }
-
-        // 删除json文件
-        unlink($jsonPath);
-
-        // 退出
-        self::vd("Dump Done ...", true);
-    }
-
-    /**
-     * 写入配置文件
-     *
-     * @param string $json
-     * @param string $dumpDir             文件输出目录
-     * @param string $dumpName            输出文件名
-     * @param boolean $handlerNoNeedSplit default false, 强制不切割通过handler生成的文件
-     */
-    private function writeData($json, $dumpDir, $dumpName, $handlerNoNeedSplit = false)
-    {
-        $dumpPath = $dumpDir . self::$DS . 'PHP';
-
-        // 如果需要分子目录存储,则需要再生成一层子目录
-        if ($this->needChildDir) {
-            $dumpNameArray = explode('_', $dumpName);
-            if (count($dumpNameArray) >= 2) {
-                $dumpPath .= self::$DS . $dumpNameArray[0] . '_' . $dumpNameArray[1];
-
-                // 创建目录
-                if (!file_exists($dumpPath)) {
-                    var_dump(mkdir($dumpPath));
-
-                    self::vd("make dir: " . $dumpPath);
-                }
-            }
-        }
-
-        $phpFile = $dumpPath . self::$DS . $dumpName . '.config.php';
-        $this->writeFile($phpFile, $json);
-
-        // 切割配置文件
-        if ($this->needSplitConfig && !$handlerNoNeedSplit) {
-            // 切割文件都统一放到以原文件名命名的文件夹内
-            $dumpPath .= self::$DS . $dumpName;
-            if (!file_exists($dumpPath)) {
-                mkdir($dumpPath);
-                self::vd("make dir: " . $dumpPath);
-            }
-
-            // 按行切割文件
-            foreach ($json as $configId => $config) {
-                $phpFile = $dumpPath . self::$DS . $configId . '.config.php';
-                $this->writeFile($phpFile, $config);
-            }
-        }
-    }
-
-    /**
-     * 写入php文件
-     *
-     * @param string $file 写入文件路径
-     * @param string $data 写入文件内容
-     * @return void
-     */
-    private function writeFile($file, $data)
-    {
-        // 写入配置文件
-        $configs = var_export($data, true);
-        // 整理输出格式
-        $config = <<<TXT
-<?php
-return {$configs};
-TXT;
-
-        // 写入导出文件
-        file_put_contents($file, $config);
-    }
-
-    /**
-     * 读取json数据
-     *
-     * @param string $jsonPath
-     * @return array
-     */
-    private function getJsonData($jsonPath)
-    {
-        if (!file_exists($jsonPath)) {
-            self::vd("Target json file not found, quit: {$jsonPath}", true);
-        }
-
-        $jsonStr = file_get_contents($jsonPath);
-        $json    = json_decode($jsonStr, true);
-
-        // 轮询数组的value,将子json结构成数组结构
-        foreach ($json as $key => $valueArr) {
-            foreach ($valueArr as $valueKey => $value) {
-                $decodedValue = @json_decode($value, true); // 如果$value是数组输入的话,会报warning,压制掉
-                if (is_array($decodedValue)) {
-                    $json[$key][$valueKey] = $decodedValue;
-                }
-            }
-        }
-
-        ksort($json);
-
-        return $json;
-    }
-
-    /**
-     * 找到最后一次导出目录
-     *
-     * @param string $dumpBase
-     * @return string
-     */
-    private function getLastDumpDir($dumpBase)
-    {
-        $lastDumpDir = null;
-        $dumpBaseDir = new DirectoryIterator($dumpBase);
-
-        /* @var DirectoryIterator $info */
-        foreach ($dumpBaseDir as $info) {
-            if ($info->isDir()) {
-                $lastDumpDir = $info->getFilename();
-            }
-        }
-
-        return $dumpBase . self::$DS . $lastDumpDir;
-    }
-
-    /**
-     * 输出调试信息
-     *
-     * @param string $msg
-     * @param boolean $exit default false, 是否退出程序执行
-     * @return void
-     */
-    private static function vd($msg, $exit = false)
-    {
-        echo $msg . "\r\n";
-        if ($exit) {
-            exit;
-        }
-    }
-
-    /**
-     * 处理成就, 找出entityId => configId对应关系
-     *
-     * @param array $originData
-     * @param string $dumpDir
-     * @param string $originName
-     * @return void
-     */
-    private function module_achievement_handler($originData, $dumpDir, $originName)
-    {
-        // 生成新数据
-        $data = [];
-        foreach ($originData as $config) {
-            if (!$config['require']) {
-                continue;
-            }
-
-            foreach ($config['require'] as $entityId => $value) {
-                if (!isset($data[$entityId])) {
-                    $effects = [];
-                } else {
-                    $effects = $data[$entityId]['effects'];
-                }
-                $effects[]       = $config['configId'];
-                $data[$entityId] = [
-                    'entityId' => $entityId,
-                    'effects'  => $effects,
-                ];
-            }
-        }
-
-        // 生成配置文件
-        $dumpName = 'module_achievement_effects';
-        $this->writeData($data, $dumpDir, $dumpName);
-    }
-
-    /**
-     * 处理任务, 生成等级任务表
-     *
-     * @param array $originData
-     * @param string $dumpDir
-     * @param string $originName
-     * @return void
-     */
-    private function module_mission_handler($originData, $dumpDir, $originName)
-    {
-        $data = [];
-        foreach ($originData as $config) {
-            $typeKey = null;
-            switch ($config['type']) {
-                case 2:
-                    $typeKey = 'dailyMission';
-                    break;
-                case 3:
-                    $typeKey = 'dailyTimeMission';
-                    break;
-                case 4:
-                    $typeKey = 'dailyVipMission';
-                    break;
-                default:
-                    break;
-            }
-
-            if (is_null($typeKey)) {
-                continue;
-            }
-
-            $maxLv = $config['level'] + 10;
-            for ($lv = $config['level']; $lv < $maxLv; ++$lv) {
-                if (!isset($data[$lv])) {
-                    $data[$lv] = [
-                        'configId'         => $lv,
-                        'level'            => $lv,
-                        'dailyMission'     => [],
-                        'dailyVipMission'  => [],
-                        'dailyTimeMission' => [],
-                    ];
-                }
-
-                $data[$lv][$typeKey][] = $config['configId'];
-            }
-        }
-
-        // 生成配置文件
-        $dumpName = 'module_mission_daily';
-        $this->writeData($data, $dumpDir, $dumpName);
-    }
-
-    /**
-     * 处理dol_social_help, 生成一张以helpId为主键的表
-     *
-     * @param array $originData
-     * @param string $dumpDir
-     * @param string $originName
-     * @return void
-     */
-    private function dol_social_help_handler($originData, $dumpDir, $originName)
-    {
-        // 整理数据
-        $data = [];
-        foreach ($originData as $config) {
-            $helpId        = strval($config['helpId']);
-            $data[$helpId] = $config;
-        }
-
-        // 生成配置文件
-        $dumpName = 'dol_social_help_auto_create';
-        $this->writeData($data, $dumpDir, $dumpName);
-    }
-
-    /**
-     * 处理dol_social_request, 生成一张以requestDefId为主键的表
-     *
-     * @param array $originData
-     * @param string $dumpDir
-     * @param string $originName
-     * @return void
-     */
-    private function dol_social_request_handler($originData, $dumpDir, $originName)
-    {
-        // 整理数据
-        $data = [];
-        foreach ($originData as $config) {
-            $helpId        = strval($config['requestDefId']);
-            $data[$helpId] = $config;
-        }
-
-        // 生成配置文件
-        $dumpName = 'dol_social_request_auto_create';
-        $this->writeData($data, $dumpDir, $dumpName);
-    }
-
-    /**
-     * 处理dol_social_feed, 生成一张以feedDefId为主键的表
-     *
-     * @param array $originData
-     * @param string $dumpDir
-     * @param string $originName
-     * @return void
-     */
-    private function dol_social_feed_handler($originData, $dumpDir, $originName)
-    {
-        // 整理数据
-        $data = [];
-        foreach ($originData as $config) {
-            $helpId        = strval($config['feedDefId']);
-            $data[$helpId] = $config;
-        }
-
-        // 生成配置文件
-        $dumpName = 'dol_social_feed_auto_create';
-        $this->writeData($data, $dumpDir, $dumpName);
-    }
-
-    /**
-     * 处理dol_drop, 切割掉落配置文件, 将配置文件按组切成一个个的配置文件
-     *
-     * @param array $originData
-     * @param string $dumpDir
-     * @param string $originName
-     * @return void
-     */
-    private function dol_drop_handler($originData, $dumpDir, $originName)
-    {
-        $groupData = [];
-
-        // 按组划分数组
-        foreach ($originData as $configId => $config) {
-            $groupData[$config['groupId']][$configId] = $config;
-        }
-
-        // 分组写入文件
-        $namePrefix = 'dol_drop_group_';
-        foreach ($groupData as $groupId => $data) {
-            $dumpName = $namePrefix . $groupId;
-            $this->writeData($data, $dumpDir, $dumpName, true);
-        }
-    }
-
-}
-
-$dump = new Dump($argv);
-$dump->run();

BIN
item.xlsx


+ 0 - 19
projects/colorrun/output/choujiang.config.php

@@ -1,19 +0,0 @@
-<?php
-return array (
-  1 => 
-  array (
-    'id' => 1,
-    'rewarditem' => '1;2;3;4',
-    'rewardnum' => '100;10;1;1',
-    'rewardweight' => '50;10;10;10',
-    'requiretime' => '1;5;10',
-  ),
-  2 => 
-  array (
-    'id' => 2,
-    'rewarditem' => '1;2;3;4',
-    'rewardnum' => '100;10;1;1',
-    'rewardweight' => '100;0;0;0',
-    'requiretime' => '10',
-  ),
-);

+ 0 - 43
projects/colorrun/output/huoyue.config.php

@@ -1,43 +0,0 @@
-<?php
-return array (
-  1 => 
-  array (
-    'id' => 1,
-    'type' => 1,
-    'num' => 5,
-    'des' => '完成5次游戏',
-    'huoyue' => 20,
-  ),
-  2 => 
-  array (
-    'id' => 2,
-    'type' => 2,
-    'num' => 1000,
-    'des' => '单次游戏获得1000分',
-    'huoyue' => 20,
-  ),
-  3 => 
-  array (
-    'id' => 3,
-    'type' => 2,
-    'num' => 5000,
-    'des' => '单次游戏获得5000分',
-    'huoyue' => 20,
-  ),
-  4 => 
-  array (
-    'id' => 4,
-    'type' => 3,
-    'num' => 2,
-    'des' => '完成2次抽奖',
-    'huoyue' => 20,
-  ),
-  5 => 
-  array (
-    'id' => 5,
-    'type' => 4,
-    'num' => 3,
-    'des' => '发送3次分享',
-    'huoyue' => 20,
-  ),
-);

+ 0 - 31
projects/colorrun/output/huoyuereward.config.php

@@ -1,31 +0,0 @@
-<?php
-return array (
-  1 => 
-  array (
-    'id' => 1,
-    'huoyue' => 25,
-    'rewarditem' => '4',
-    'rewardnum' => '1',
-  ),
-  2 => 
-  array (
-    'id' => 2,
-    'huoyue' => 50,
-    'rewarditem' => '3',
-    'rewardnum' => '1',
-  ),
-  3 => 
-  array (
-    'id' => 3,
-    'huoyue' => 75,
-    'rewarditem' => '1',
-    'rewardnum' => '100',
-  ),
-  4 => 
-  array (
-    'id' => 4,
-    'huoyue' => 100,
-    'rewarditem' => '2',
-    'rewardnum' => '10',
-  ),
-);

+ 0 - 33
projects/colorrun/output/item.config.php

@@ -1,33 +0,0 @@
-<?php
-return array (
-  1 => 
-  array (
-    'id' => 1,
-    'name' => '金币',
-    'duration' => 0,
-  ),
-  2 => 
-  array (
-    'id' => 2,
-    'name' => '钻石',
-    'duration' => 0,
-  ),
-  3 => 
-  array (
-    'id' => 3,
-    'name' => '复活卡',
-    'duration' => 0,
-  ),
-  4 => 
-  array (
-    'id' => 4,
-    'name' => '无敌卡',
-    'duration' => 2,
-  ),
-  5 => 
-  array (
-    'id' => 5,
-    'name' => '吸金卡',
-    'duration' => 4,
-  ),
-);

+ 0 - 10
projects/colorrun/output/meiriyaoqing.config.php

@@ -1,10 +0,0 @@
-<?php
-return array (
-  1 => 
-  array (
-    'id' => 1,
-    'num' => 5,
-    'rewarditem' => '2;3',
-    'rewardnum' => '50;10',
-  ),
-);

+ 0 - 9
projects/colorrun/output/paihang.config.php

@@ -1,9 +0,0 @@
-<?php
-return array (
-  1 => 
-  array (
-    'id' => 1,
-    'rewarditem' => '1;4',
-    'rewardnum' => '500;5',
-  ),
-);

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 5309
projects/colorrun/output/road.config.php


+ 0 - 87
projects/colorrun/output/roadcolor.config.php

@@ -1,87 +0,0 @@
-<?php
-return array (
-  1 => 
-  array (
-    'id' => 1,
-    'name' => '道路1',
-    'des' => '道路1',
-    'mission' => 0,
-  ),
-  2 => 
-  array (
-    'id' => 2,
-    'name' => '道路2',
-    'des' => '道路2',
-    'mission' => 3000,
-  ),
-  3 => 
-  array (
-    'id' => 3,
-    'name' => '道路3',
-    'des' => '道路3',
-    'mission' => 5000,
-  ),
-  4 => 
-  array (
-    'id' => 4,
-    'name' => '道路4',
-    'des' => '道路4',
-    'mission' => 8000,
-  ),
-  5 => 
-  array (
-    'id' => 5,
-    'name' => '道路5',
-    'des' => '道路5',
-    'mission' => 10000,
-  ),
-  6 => 
-  array (
-    'id' => 6,
-    'name' => '道路6',
-    'des' => '道路6',
-    'mission' => 12000,
-  ),
-  7 => 
-  array (
-    'id' => 7,
-    'name' => '道路7',
-    'des' => '道路7',
-    'mission' => 15000,
-  ),
-  8 => 
-  array (
-    'id' => 8,
-    'name' => '道路8',
-    'des' => '道路8',
-    'mission' => 18000,
-  ),
-  9 => 
-  array (
-    'id' => 9,
-    'name' => '道路9',
-    'des' => '道路9',
-    'mission' => 21000,
-  ),
-  10 => 
-  array (
-    'id' => 10,
-    'name' => '道路10',
-    'des' => '道路10',
-    'mission' => 24000,
-  ),
-  11 => 
-  array (
-    'id' => 11,
-    'name' => '道路11',
-    'des' => '道路11',
-    'mission' => 27000,
-  ),
-  12 => 
-  array (
-    'id' => 12,
-    'name' => '道路12',
-    'des' => '道路12',
-    'mission' => 30000,
-  ),
-);

+ 0 - 45
projects/colorrun/output/signin.config.php

@@ -1,45 +0,0 @@
-<?php
-return array (
-  1 => 
-  array (
-    'id' => 1,
-    'rewarditem' => '4',
-    'rewardnum' => '1',
-  ),
-  2 => 
-  array (
-    'id' => 2,
-    'rewarditem' => '5',
-    'rewardnum' => '2',
-  ),
-  3 => 
-  array (
-    'id' => 3,
-    'rewarditem' => '1',
-    'rewardnum' => '1000',
-  ),
-  4 => 
-  array (
-    'id' => 4,
-    'rewarditem' => '3',
-    'rewardnum' => '1',
-  ),
-  5 => 
-  array (
-    'id' => 5,
-    'rewarditem' => '2',
-    'rewardnum' => '20',
-  ),
-  6 => 
-  array (
-    'id' => 6,
-    'rewarditem' => '5',
-    'rewardnum' => '3',
-  ),
-  7 => 
-  array (
-    'id' => 7,
-    'rewarditem' => '1',
-    'rewardnum' => '2000',
-  ),
-);

+ 0 - 111
projects/colorrun/output/weiji.config.php

@@ -1,111 +0,0 @@
-<?php
-return array (
-  1 => 
-  array (
-    'id' => 1,
-    'name' => '莹白光迹',
-    'des' => '无敌时间+1',
-    'powertime' => 1,
-    'autotime' => 0,
-    'costzs' => 10,
-  ),
-  2 => 
-  array (
-    'id' => 2,
-    'name' => '湛蓝天空',
-    'des' => '吸金时间+2',
-    'powertime' => 0,
-    'autotime' => 2,
-    'costzs' => 20,
-  ),
-  3 => 
-  array (
-    'id' => 3,
-    'name' => '紫色神秘',
-    'des' => '无敌时间+2',
-    'powertime' => 2,
-    'autotime' => 0,
-    'costzs' => 200,
-  ),
-  4 => 
-  array (
-    'id' => 4,
-    'name' => '翠绿荧光',
-    'des' => '吸金时间+4',
-    'powertime' => 0,
-    'autotime' => 4,
-    'costzs' => 500,
-  ),
-  5 => 
-  array (
-    'id' => 5,
-    'name' => '紫色神秘',
-    'des' => '无敌时间+3',
-    'powertime' => 3,
-    'autotime' => 0,
-    'costzs' => 200,
-  ),
-  6 => 
-  array (
-    'id' => 6,
-    'name' => '翠绿荧光',
-    'des' => '吸金时间+6',
-    'powertime' => 0,
-    'autotime' => 6,
-    'costzs' => 500,
-  ),
-  7 => 
-  array (
-    'id' => 7,
-    'name' => '紫色神秘',
-    'des' => '无敌时间+2,吸金时间+4',
-    'powertime' => 2,
-    'autotime' => 4,
-    'costzs' => 200,
-  ),
-  8 => 
-  array (
-    'id' => 8,
-    'name' => '翠绿荧光',
-    'des' => '无敌时间+3,吸金时间+5',
-    'powertime' => 3,
-    'autotime' => 5,
-    'costzs' => 500,
-  ),
-  9 => 
-  array (
-    'id' => 9,
-    'name' => '土豪金',
-    'des' => '无敌时间+4,吸金时间+6',
-    'powertime' => 4,
-    'autotime' => 6,
-    'costzs' => 1000,
-  ),
-  10 => 
-  array (
-    'id' => 10,
-    'name' => '紫色神秘',
-    'des' => '无敌时间+5,吸金时间+7',
-    'powertime' => 5,
-    'autotime' => 7,
-    'costzs' => 200,
-  ),
-  11 => 
-  array (
-    'id' => 11,
-    'name' => '翠绿荧光',
-    'des' => '无敌时间+6,吸金时间+8',
-    'powertime' => 6,
-    'autotime' => 8,
-    'costzs' => 500,
-  ),
-  12 => 
-  array (
-    'id' => 12,
-    'name' => '土豪金',
-    'des' => '无敌时间+8,吸金时间+10',
-    'powertime' => 8,
-    'autotime' => 10,
-    'costzs' => 1000,
-  ),
-);

+ 0 - 48
projects/colorrun/output/yaoqing.config.php

@@ -1,48 +0,0 @@
-<?php
-return array (
-  1 => 
-  array (
-    'id' => 1,
-    'type' => 1,
-    'num' => '1',
-    'des' => '邀请1个好友',
-    'rewarditem' => '4',
-    'rewardnum' => '1',
-  ),
-  2 => 
-  array (
-    'id' => 2,
-    'type' => 1,
-    'num' => '3',
-    'des' => '邀请3个好友',
-    'rewarditem' => '4',
-    'rewardnum' => '3',
-  ),
-  3 => 
-  array (
-    'id' => 3,
-    'type' => 2,
-    'num' => '3;50',
-    'des' => '邀请的3个好友活跃达到50',
-    'rewarditem' => '1',
-    'rewardnum' => '200',
-  ),
-  4 => 
-  array (
-    'id' => 4,
-    'type' => 3,
-    'num' => '3',
-    'des' => '邀请的好友进行3次抽奖',
-    'rewarditem' => '2',
-    'rewardnum' => '10',
-  ),
-  5 => 
-  array (
-    'id' => 5,
-    'type' => 3,
-    'num' => '5',
-    'des' => '邀请的好友进行5次抽奖',
-    'rewarditem' => '2',
-    'rewardnum' => '30',
-  ),
-);

+ 0 - 553
projects/colorrun/output/zhuti.config.php

@@ -1,553 +0,0 @@
-<?php
-return array (
-  101 => 
-  array (
-    'id' => 101,
-    'next_id' => 102,
-    'sequence' => 1,
-    'name' => '成长之路',
-    'lv' => 1,
-    'moregold' => 1.0,
-    'des' => '在游戏中可以获得金币',
-    'costgold' => 100,
-  ),
-  102 => 
-  array (
-    'id' => 102,
-    'next_id' => 103,
-    'sequence' => 1,
-    'name' => '成长之路',
-    'lv' => 2,
-    'moregold' => 1.02,
-    'des' => '游戏中获得金币增加2%',
-    'costgold' => 300,
-  ),
-  103 => 
-  array (
-    'id' => 103,
-    'next_id' => 104,
-    'sequence' => 1,
-    'name' => '成长之路',
-    'lv' => 3,
-    'moregold' => 1.04,
-    'des' => '游戏中获得金币增加4%',
-    'costgold' => 500,
-  ),
-  104 => 
-  array (
-    'id' => 104,
-    'next_id' => 105,
-    'sequence' => 1,
-    'name' => '成长之路',
-    'lv' => 4,
-    'moregold' => 1.06,
-    'des' => '游戏中获得金币增加6%',
-    'costgold' => 1000,
-  ),
-  105 => 
-  array (
-    'id' => 105,
-    'next_id' => 106,
-    'sequence' => 1,
-    'name' => '成长之路',
-    'lv' => 5,
-    'moregold' => 1.08,
-    'des' => '游戏中获得金币增加8%',
-    'costgold' => 1600,
-  ),
-  106 => 
-  array (
-    'id' => 106,
-    'next_id' => 107,
-    'sequence' => 1,
-    'name' => '成长之路',
-    'lv' => 6,
-    'moregold' => 1.1,
-    'des' => '游戏中获得金币增加10%',
-    'costgold' => 2400,
-  ),
-  107 => 
-  array (
-    'id' => 107,
-    'next_id' => 108,
-    'sequence' => 1,
-    'name' => '成长之路',
-    'lv' => 7,
-    'moregold' => 1.12,
-    'des' => '游戏中获得金币增加12%',
-    'costgold' => 3200,
-  ),
-  108 => 
-  array (
-    'id' => 108,
-    'next_id' => 109,
-    'sequence' => 1,
-    'name' => '成长之路',
-    'lv' => 8,
-    'moregold' => 1.14,
-    'des' => '游戏中获得金币增加14%',
-    'costgold' => 4000,
-  ),
-  109 => 
-  array (
-    'id' => 109,
-    'next_id' => 110,
-    'sequence' => 1,
-    'name' => '成长之路',
-    'lv' => 9,
-    'moregold' => 1.16,
-    'des' => '游戏中获得金币增加16%',
-    'costgold' => 4800,
-  ),
-  110 => 
-  array (
-    'id' => 110,
-    'next_id' => 201,
-    'sequence' => 1,
-    'name' => '成长之路',
-    'lv' => 10,
-    'moregold' => 1.18,
-    'des' => '游戏中获得金币增加18%',
-    'costgold' => 5600,
-  ),
-  201 => 
-  array (
-    'id' => 201,
-    'next_id' => 202,
-    'sequence' => 2,
-    'name' => '欢庆旅途',
-    'lv' => 1,
-    'moregold' => 1.2,
-    'des' => '游戏中获得金币增加20%',
-    'costgold' => 7200,
-  ),
-  202 => 
-  array (
-    'id' => 202,
-    'next_id' => 203,
-    'sequence' => 2,
-    'name' => '欢庆旅途',
-    'lv' => 2,
-    'moregold' => 1.22,
-    'des' => '游戏中获得金币增加22%',
-    'costgold' => 9000,
-  ),
-  203 => 
-  array (
-    'id' => 203,
-    'next_id' => 204,
-    'sequence' => 2,
-    'name' => '欢庆旅途',
-    'lv' => 3,
-    'moregold' => 1.24,
-    'des' => '游戏中获得金币增加24%',
-    'costgold' => 10800,
-  ),
-  204 => 
-  array (
-    'id' => 204,
-    'next_id' => 205,
-    'sequence' => 2,
-    'name' => '欢庆旅途',
-    'lv' => 4,
-    'moregold' => 1.26,
-    'des' => '游戏中获得金币增加26%',
-    'costgold' => 12600,
-  ),
-  205 => 
-  array (
-    'id' => 205,
-    'next_id' => 206,
-    'sequence' => 2,
-    'name' => '欢庆旅途',
-    'lv' => 5,
-    'moregold' => 1.28,
-    'des' => '游戏中获得金币增加28%',
-    'costgold' => 14400,
-  ),
-  206 => 
-  array (
-    'id' => 206,
-    'next_id' => 207,
-    'sequence' => 2,
-    'name' => '欢庆旅途',
-    'lv' => 6,
-    'moregold' => 1.3,
-    'des' => '游戏中获得金币增加30%',
-    'costgold' => 16200,
-  ),
-  207 => 
-  array (
-    'id' => 207,
-    'next_id' => 208,
-    'sequence' => 2,
-    'name' => '欢庆旅途',
-    'lv' => 7,
-    'moregold' => 1.32,
-    'des' => '游戏中获得金币增加32%',
-    'costgold' => 18000,
-  ),
-  208 => 
-  array (
-    'id' => 208,
-    'next_id' => 209,
-    'sequence' => 2,
-    'name' => '欢庆旅途',
-    'lv' => 8,
-    'moregold' => 1.34,
-    'des' => '游戏中获得金币增加34%',
-    'costgold' => 19800,
-  ),
-  209 => 
-  array (
-    'id' => 209,
-    'next_id' => 210,
-    'sequence' => 2,
-    'name' => '欢庆旅途',
-    'lv' => 9,
-    'moregold' => 1.36,
-    'des' => '游戏中获得金币增加36%',
-    'costgold' => 21600,
-  ),
-  210 => 
-  array (
-    'id' => 210,
-    'next_id' => 301,
-    'sequence' => 2,
-    'name' => '欢庆旅途',
-    'lv' => 10,
-    'moregold' => 1.38,
-    'des' => '游戏中获得金币增加38%',
-    'costgold' => 23400,
-  ),
-  301 => 
-  array (
-    'id' => 301,
-    'next_id' => 302,
-    'sequence' => 3,
-    'name' => '幻想秘境',
-    'lv' => 1,
-    'moregold' => 1.4,
-    'des' => '游戏中获得金币增加40%',
-    'costgold' => 25200,
-  ),
-  302 => 
-  array (
-    'id' => 302,
-    'next_id' => 303,
-    'sequence' => 3,
-    'name' => '幻想秘境',
-    'lv' => 2,
-    'moregold' => 1.42,
-    'des' => '游戏中获得金币增加42%',
-    'costgold' => 27000,
-  ),
-  303 => 
-  array (
-    'id' => 303,
-    'next_id' => 304,
-    'sequence' => 3,
-    'name' => '幻想秘境',
-    'lv' => 3,
-    'moregold' => 1.44,
-    'des' => '游戏中获得金币增加44%',
-    'costgold' => 28800,
-  ),
-  304 => 
-  array (
-    'id' => 304,
-    'next_id' => 305,
-    'sequence' => 3,
-    'name' => '幻想秘境',
-    'lv' => 4,
-    'moregold' => 1.46,
-    'des' => '游戏中获得金币增加46%',
-    'costgold' => 30600,
-  ),
-  305 => 
-  array (
-    'id' => 305,
-    'next_id' => 306,
-    'sequence' => 3,
-    'name' => '幻想秘境',
-    'lv' => 5,
-    'moregold' => 1.48,
-    'des' => '游戏中获得金币增加48%',
-    'costgold' => 32400,
-  ),
-  306 => 
-  array (
-    'id' => 306,
-    'next_id' => 307,
-    'sequence' => 3,
-    'name' => '幻想秘境',
-    'lv' => 6,
-    'moregold' => 1.5,
-    'des' => '游戏中获得金币增加50%',
-    'costgold' => 34200,
-  ),
-  307 => 
-  array (
-    'id' => 307,
-    'next_id' => 308,
-    'sequence' => 3,
-    'name' => '幻想秘境',
-    'lv' => 7,
-    'moregold' => 1.52,
-    'des' => '游戏中获得金币增加52%',
-    'costgold' => 36000,
-  ),
-  308 => 
-  array (
-    'id' => 308,
-    'next_id' => 309,
-    'sequence' => 3,
-    'name' => '幻想秘境',
-    'lv' => 8,
-    'moregold' => 1.54,
-    'des' => '游戏中获得金币增加54%',
-    'costgold' => 37800,
-  ),
-  309 => 
-  array (
-    'id' => 309,
-    'next_id' => 310,
-    'sequence' => 3,
-    'name' => '幻想秘境',
-    'lv' => 9,
-    'moregold' => 1.56,
-    'des' => '游戏中获得金币增加56%',
-    'costgold' => 39600,
-  ),
-  310 => 
-  array (
-    'id' => 310,
-    'next_id' => 401,
-    'sequence' => 3,
-    'name' => '幻想秘境',
-    'lv' => 10,
-    'moregold' => 1.58,
-    'des' => '游戏中获得金币增加58%',
-    'costgold' => 41400,
-  ),
-  401 => 
-  array (
-    'id' => 401,
-    'next_id' => 402,
-    'sequence' => 4,
-    'name' => '遗迹探索',
-    'lv' => 1,
-    'moregold' => 1.6,
-    'des' => '游戏中获得金币增加60%',
-    'costgold' => 43200,
-  ),
-  402 => 
-  array (
-    'id' => 402,
-    'next_id' => 403,
-    'sequence' => 4,
-    'name' => '遗迹探索',
-    'lv' => 2,
-    'moregold' => 1.62,
-    'des' => '游戏中获得金币增加62%',
-    'costgold' => 45000,
-  ),
-  403 => 
-  array (
-    'id' => 403,
-    'next_id' => 404,
-    'sequence' => 4,
-    'name' => '遗迹探索',
-    'lv' => 3,
-    'moregold' => 1.64,
-    'des' => '游戏中获得金币增加64%',
-    'costgold' => 46800,
-  ),
-  404 => 
-  array (
-    'id' => 404,
-    'next_id' => 405,
-    'sequence' => 4,
-    'name' => '遗迹探索',
-    'lv' => 4,
-    'moregold' => 1.66,
-    'des' => '游戏中获得金币增加66%',
-    'costgold' => 48600,
-  ),
-  405 => 
-  array (
-    'id' => 405,
-    'next_id' => 406,
-    'sequence' => 4,
-    'name' => '遗迹探索',
-    'lv' => 5,
-    'moregold' => 1.68,
-    'des' => '游戏中获得金币增加68%',
-    'costgold' => 50400,
-  ),
-  406 => 
-  array (
-    'id' => 406,
-    'next_id' => 407,
-    'sequence' => 4,
-    'name' => '遗迹探索',
-    'lv' => 6,
-    'moregold' => 1.7,
-    'des' => '游戏中获得金币增加70%',
-    'costgold' => 52200,
-  ),
-  407 => 
-  array (
-    'id' => 407,
-    'next_id' => 408,
-    'sequence' => 4,
-    'name' => '遗迹探索',
-    'lv' => 7,
-    'moregold' => 1.72,
-    'des' => '游戏中获得金币增加72%',
-    'costgold' => 54000,
-  ),
-  408 => 
-  array (
-    'id' => 408,
-    'next_id' => 409,
-    'sequence' => 4,
-    'name' => '遗迹探索',
-    'lv' => 8,
-    'moregold' => 1.74,
-    'des' => '游戏中获得金币增加74%',
-    'costgold' => 55800,
-  ),
-  409 => 
-  array (
-    'id' => 409,
-    'next_id' => 410,
-    'sequence' => 4,
-    'name' => '遗迹探索',
-    'lv' => 9,
-    'moregold' => 1.76,
-    'des' => '游戏中获得金币增加76%',
-    'costgold' => 57600,
-  ),
-  410 => 
-  array (
-    'id' => 410,
-    'next_id' => 501,
-    'sequence' => 4,
-    'name' => '遗迹探索',
-    'lv' => 10,
-    'moregold' => 1.78,
-    'des' => '游戏中获得金币增加78%',
-    'costgold' => 59400,
-  ),
-  501 => 
-  array (
-    'id' => 501,
-    'next_id' => 502,
-    'sequence' => 5,
-    'name' => '虹彩路途',
-    'lv' => 1,
-    'moregold' => 1.8,
-    'des' => '游戏中获得金币增加80%',
-    'costgold' => 61200,
-  ),
-  502 => 
-  array (
-    'id' => 502,
-    'next_id' => 503,
-    'sequence' => 5,
-    'name' => '虹彩路途',
-    'lv' => 2,
-    'moregold' => 1.82,
-    'des' => '游戏中获得金币增加82%',
-    'costgold' => 63000,
-  ),
-  503 => 
-  array (
-    'id' => 503,
-    'next_id' => 504,
-    'sequence' => 5,
-    'name' => '虹彩路途',
-    'lv' => 3,
-    'moregold' => 1.84,
-    'des' => '游戏中获得金币增加84%',
-    'costgold' => 64800,
-  ),
-  504 => 
-  array (
-    'id' => 504,
-    'next_id' => 505,
-    'sequence' => 5,
-    'name' => '虹彩路途',
-    'lv' => 4,
-    'moregold' => 1.86,
-    'des' => '游戏中获得金币增加86%',
-    'costgold' => 66600,
-  ),
-  505 => 
-  array (
-    'id' => 505,
-    'next_id' => 506,
-    'sequence' => 5,
-    'name' => '虹彩路途',
-    'lv' => 5,
-    'moregold' => 1.88,
-    'des' => '游戏中获得金币增加88%',
-    'costgold' => 68400,
-  ),
-  506 => 
-  array (
-    'id' => 506,
-    'next_id' => 507,
-    'sequence' => 5,
-    'name' => '虹彩路途',
-    'lv' => 6,
-    'moregold' => 1.9,
-    'des' => '游戏中获得金币增加90%',
-    'costgold' => 70200,
-  ),
-  507 => 
-  array (
-    'id' => 507,
-    'next_id' => 508,
-    'sequence' => 5,
-    'name' => '虹彩路途',
-    'lv' => 7,
-    'moregold' => 1.92,
-    'des' => '游戏中获得金币增加92%',
-    'costgold' => 72000,
-  ),
-  508 => 
-  array (
-    'id' => 508,
-    'next_id' => 509,
-    'sequence' => 5,
-    'name' => '虹彩路途',
-    'lv' => 8,
-    'moregold' => 1.94,
-    'des' => '游戏中获得金币增加94%',
-    'costgold' => 73800,
-  ),
-  509 => 
-  array (
-    'id' => 509,
-    'next_id' => 510,
-    'sequence' => 5,
-    'name' => '虹彩路途',
-    'lv' => 9,
-    'moregold' => 1.96,
-    'des' => '游戏中获得金币增加96%',
-    'costgold' => 75600,
-  ),
-  510 => 
-  array (
-    'id' => 510,
-    'next_id' => 0,
-    'sequence' => 5,
-    'name' => '虹彩路途',
-    'lv' => 10,
-    'moregold' => 1.98,
-    'des' => '游戏中获得金币增加98%',
-    'costgold' => 77400,
-  ),
-);

+ 0 - 19
projects/colorrun/script/choujiang.php

@@ -1,19 +0,0 @@
-<?php
-
-// 配置
-// 字段名对应的行数(1开始)
-$columnLine = 2;
-// 数据对应的行数(1开始)
-$dataLine = 3;
-// 键值对应的列(1开始)
-$keyColumn = 'id';
-// 哪些字段被导出以及导出的格式
-// 支持string number 和 json 三种格式
-// 未设置的字段不被导出
-$columns = [
-    'id'           => 'number',
-    'rewarditem'   => 'string',
-    'rewardnum'    => 'string',
-    'rewardweight' => 'string',
-    'requiretime'  => 'string',
-];

+ 0 - 19
projects/colorrun/script/huoyue.php

@@ -1,19 +0,0 @@
-<?php
-
-// 配置
-// 字段名对应的行数(1开始)
-$columnLine = 2;
-// 数据对应的行数(1开始)
-$dataLine = 3;
-// 键值对应的列(1开始)
-$keyColumn = 'id';
-// 哪些字段被导出以及导出的格式
-// 支持string number 和 json 三种格式
-// 未设置的字段不被导出
-$columns = [
-    'id'     => 'number',
-    'type'   => 'number',
-    'num'    => 'number',
-    'des'    => 'string',
-    'huoyue' => 'number',
-];

+ 0 - 18
projects/colorrun/script/huoyuereward.php

@@ -1,18 +0,0 @@
-<?php
-
-// 配置
-// 字段名对应的行数(1开始)
-$columnLine = 2;
-// 数据对应的行数(1开始)
-$dataLine = 3;
-// 键值对应的列(1开始)
-$keyColumn = 'id';
-// 哪些字段被导出以及导出的格式
-// 支持string number 和 json 三种格式
-// 未设置的字段不被导出
-$columns = [
-    'id'         => 'number',
-    'huoyue'     => 'number',
-    'rewarditem' => 'string',
-    'rewardnum'  => 'string',
-];

+ 0 - 17
projects/colorrun/script/item.php

@@ -1,17 +0,0 @@
-<?php
-
-// 配置
-// 字段名对应的行数(1开始)
-$columnLine = 2;
-// 数据对应的行数(1开始)
-$dataLine = 3;
-// 键值对应的列(1开始)
-$keyColumn = 'id';
-// 哪些字段被导出以及导出的格式
-// 支持string number 和 json 三种格式
-// 未设置的字段不被导出
-$columns = [
-    'id'       => 'number',
-    'name'     => 'string',
-    'duration' => 'number',
-];

+ 0 - 18
projects/colorrun/script/meiriyaoqing.php

@@ -1,18 +0,0 @@
-<?php
-
-// 配置
-// 字段名对应的行数(1开始)
-$columnLine = 2;
-// 数据对应的行数(1开始)
-$dataLine = 3;
-// 键值对应的列(1开始)
-$keyColumn = 'id';
-// 哪些字段被导出以及导出的格式
-// 支持string number 和 json 三种格式
-// 未设置的字段不被导出
-$columns = [
-    'id'         => 'number',
-    'num'        => 'number',
-    'rewarditem' => 'string',
-    'rewardnum'  => 'string',
-];

+ 0 - 17
projects/colorrun/script/paihang.php

@@ -1,17 +0,0 @@
-<?php
-
-// 配置
-// 字段名对应的行数(1开始)
-$columnLine = 2;
-// 数据对应的行数(1开始)
-$dataLine = 3;
-// 键值对应的列(1开始)
-$keyColumn = 'id';
-// 哪些字段被导出以及导出的格式
-// 支持string number 和 json 三种格式
-// 未设置的字段不被导出
-$columns = [
-    'id'         => 'number',
-    'rewarditem' => 'string',
-    'rewardnum'  => 'string',
-];

+ 0 - 25
projects/colorrun/script/road.php

@@ -1,25 +0,0 @@
-<?php
-
-// 配置
-// 字段名对应的行数(1开始)
-$columnLine = 2;
-// 数据对应的行数(1开始)
-$dataLine = 3;
-// 键值对应的列(1开始)
-$keyColumn = 'id';
-// 哪些字段被导出以及导出的格式
-// 支持string number float json 格式
-// 未设置的字段不被导出
-$columns = [
-    'id'           => 'number',
-    'nandu'        => 'number',
-    'luduan'       => 'number',
-    'quanzhong'    => 'number',
-    'wujian'       => 'number',
-    'juli'         => 'float',
-    'type'         => 'string',
-    'color'        => 'string',
-    'sudu'         => 'float',
-    'jiasu'        => 'number',
-    'jiasushijain' => 'number',
-];

+ 0 - 18
projects/colorrun/script/roadcolor.php

@@ -1,18 +0,0 @@
-<?php
-
-// 配置
-// 字段名对应的行数(1开始)
-$columnLine = 2;
-// 数据对应的行数(1开始)
-$dataLine = 3;
-// 键值对应的列(1开始)
-$keyColumn = 'id';
-// 哪些字段被导出以及导出的格式
-// 支持string number float json 格式
-// 未设置的字段不被导出
-$columns = [
-    'id'      => 'number',
-    'name'    => 'string',
-    'des'    => 'string',
-    'mission' => 'number',
-];

+ 0 - 17
projects/colorrun/script/signin.php

@@ -1,17 +0,0 @@
-<?php
-
-// 配置
-// 字段名对应的行数(1开始)
-$columnLine = 2;
-// 数据对应的行数(1开始)
-$dataLine = 3;
-// 键值对应的列(1开始)
-$keyColumn = 'id';
-// 哪些字段被导出以及导出的格式
-// 支持string number 和 json 三种格式
-// 未设置的字段不被导出
-$columns = [
-    'id'         => 'number',
-    'rewarditem' => 'string',
-    'rewardnum'  => 'string',
-];

+ 0 - 20
projects/colorrun/script/weiji.php

@@ -1,20 +0,0 @@
-<?php
-
-// 配置
-// 字段名对应的行数(1开始)
-$columnLine = 2;
-// 数据对应的行数(1开始)
-$dataLine = 3;
-// 键值对应的列(1开始)
-$keyColumn = 'id';
-// 哪些字段被导出以及导出的格式
-// 支持string number 和 json 三种格式
-// 未设置的字段不被导出
-$columns = [
-    'id'        => 'number',
-    'name'      => 'string',
-    'des'       => 'string',
-    'powertime' => 'number',
-    'autotime'  => 'number',
-    'costzs'    => 'number',
-];

+ 0 - 20
projects/colorrun/script/yaoqing.php

@@ -1,20 +0,0 @@
-<?php
-
-// 配置
-// 字段名对应的行数(1开始)
-$columnLine = 2;
-// 数据对应的行数(1开始)
-$dataLine = 3;
-// 键值对应的列(1开始)
-$keyColumn = 'id';
-// 哪些字段被导出以及导出的格式
-// 支持string number 和 json 三种格式
-// 未设置的字段不被导出
-$columns = [
-    'id'         => 'number',
-    'type'       => 'number',
-    'num'        => 'string',
-    'des'        => 'string',
-    'rewarditem' => 'string',
-    'rewardnum'  => 'string',
-];

+ 0 - 22
projects/colorrun/script/zhuti.php

@@ -1,22 +0,0 @@
-<?php
-
-// 配置
-// 字段名对应的行数(1开始)
-$columnLine = 2;
-// 数据对应的行数(1开始)
-$dataLine = 3;
-// 键值对应的列(1开始)
-$keyColumn = 'id';
-// 哪些字段被导出以及导出的格式
-// 支持string number 和 json 三种格式
-// 未设置的字段不被导出
-$columns = [
-    'id'       => 'number',
-    'next_id'  => 'number',
-    'sequence' => 'number',
-    'name'     => 'string',
-    'lv'       => 'number',
-    'moregold' => 'float',
-    'des'      => 'string',
-    'costgold' => 'number',
-];

BIN
projects/colorrun/source/choujiang.xlsx


BIN
projects/colorrun/source/huoyue.xlsx


BIN
projects/colorrun/source/huoyuereward.xlsx


BIN
projects/colorrun/source/item.xlsx


BIN
projects/colorrun/source/meiriyaoqing.xlsx


BIN
projects/colorrun/source/paihang.xlsx


BIN
projects/colorrun/source/road.xlsx


BIN
projects/colorrun/source/roadcolor.xlsx


BIN
projects/colorrun/source/signin.xlsx


BIN
projects/colorrun/source/weiji.xlsx


BIN
projects/colorrun/source/yaoqing.xlsx


BIN
projects/colorrun/source/zhuti.xlsx


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 1643
projects/rank/output/rank.config.php


+ 0 - 21
projects/rank/script/rank.php

@@ -1,21 +0,0 @@
-<?php
-
-// 配置
-// 字段名对应的行数(1开始)
-$columnLine = 2;
-// 数据对应的行数(1开始)
-$dataLine = 3;
-// 键值对应的列(1开始)
-$keyColumn = 'auto_id';
-// 哪些字段被导出以及导出的格式
-// 只支持string和number两种格式
-// 未设置的字段不被导出
-$columns = [
-    'auto_id'      => 'number',
-    'grade_id'     => 'number',
-    'level'        => 'number',
-    'star'         => 'number',
-    'min_exp'      => 'number',
-    'max_exp'      => 'number',
-    'unrelegation' => 'number',
-];

BIN
projects/rank/source/rank.xlsx


+ 0 - 45
projects/runball/output/road.config.php

@@ -1,45 +0,0 @@
-<?php
-return array (
-  1 => 
-  array (
-    'id' => 1,
-    'money' => 0,
-    'icon' => 1,
-    'texture' => 1,
-  ),
-  2 => 
-  array (
-    'id' => 2,
-    'money' => 50,
-    'icon' => 2,
-    'texture' => 2,
-  ),
-  3 => 
-  array (
-    'id' => 3,
-    'money' => 90,
-    'icon' => 3,
-    'texture' => 3,
-  ),
-  4 => 
-  array (
-    'id' => 4,
-    'money' => 130,
-    'icon' => 4,
-    'texture' => 4,
-  ),
-  5 => 
-  array (
-    'id' => 5,
-    'money' => 200,
-    'icon' => 5,
-    'texture' => 5,
-  ),
-  6 => 
-  array (
-    'id' => 6,
-    'money' => 500,
-    'icon' => 6,
-    'texture' => 6,
-  ),
-);

+ 0 - 59
projects/runball/output/sign.config.php

@@ -1,59 +0,0 @@
-<?php
-return array (
-  1 => 
-  array (
-    'day' => 1,
-    'rewards_type' => 'money',
-    'amount' => 20,
-    'treasure' => 
-    array (
-    ),
-  ),
-  2 => 
-  array (
-    'day' => 2,
-    'rewards_type' => 'money',
-    'amount' => 50,
-    'treasure' => 
-    array (
-    ),
-  ),
-  3 => 
-  array (
-    'day' => 3,
-    'rewards_type' => 'money',
-    'amount' => 90,
-    'treasure' => 
-    array (
-    ),
-  ),
-  4 => 
-  array (
-    'day' => 4,
-    'rewards_type' => 'money',
-    'amount' => 130,
-    'treasure' => 
-    array (
-    ),
-  ),
-  5 => 
-  array (
-    'day' => 5,
-    'rewards_type' => 'money',
-    'amount' => 200,
-    'treasure' => 
-    array (
-    ),
-  ),
-  6 => 
-  array (
-    'day' => 6,
-    'rewards_type' => 'treasure',
-    'amount' => 1,
-    'treasure' => 
-    array (
-      'money:100' => 99,
-      'road:6' => 1,
-    ),
-  ),
-);

+ 0 - 45
projects/runball/output/theme.config.php

@@ -1,45 +0,0 @@
-<?php
-return array (
-  1 => 
-  array (
-    'id' => 1,
-    'money' => 0,
-    'icon' => 1,
-    'texture' => 1,
-  ),
-  2 => 
-  array (
-    'id' => 2,
-    'money' => 50,
-    'icon' => 2,
-    'texture' => 2,
-  ),
-  3 => 
-  array (
-    'id' => 3,
-    'money' => 90,
-    'icon' => 3,
-    'texture' => 3,
-  ),
-  4 => 
-  array (
-    'id' => 4,
-    'money' => 130,
-    'icon' => 4,
-    'texture' => 4,
-  ),
-  5 => 
-  array (
-    'id' => 5,
-    'money' => 200,
-    'icon' => 5,
-    'texture' => 5,
-  ),
-  6 => 
-  array (
-    'id' => 6,
-    'money' => 500,
-    'icon' => 6,
-    'texture' => 6,
-  ),
-);

+ 0 - 18
projects/runball/script/road.php

@@ -1,18 +0,0 @@
-<?php
-
-// 配置
-// 字段名对应的行数(1开始)
-$columnLine = 2;
-// 数据对应的行数(1开始)
-$dataLine = 3;
-// 键值对应的列(1开始)
-$keyColumn = 'id';
-// 哪些字段被导出以及导出的格式
-// 支持string number 和 json 三种格式
-// 未设置的字段不被导出
-$columns = [
-    'id'      => 'number',
-    'money'   => 'number',
-    'icon'    => 'number',
-    'texture' => 'number',
-];

+ 0 - 18
projects/runball/script/sign.php

@@ -1,18 +0,0 @@
-<?php
-
-// 配置
-// 字段名对应的行数(1开始)
-$columnLine = 2;
-// 数据对应的行数(1开始)
-$dataLine = 3;
-// 键值对应的列(1开始)
-$keyColumn = 'day';
-// 哪些字段被导出以及导出的格式
-// 支持string number 和 json 三种格式
-// 未设置的字段不被导出
-$columns = [
-    'day'          => 'number',
-    'rewards_type' => 'string',
-    'amount'       => 'number',
-    'treasure'     => 'json',
-];

+ 0 - 18
projects/runball/script/theme.php

@@ -1,18 +0,0 @@
-<?php
-
-// 配置
-// 字段名对应的行数(1开始)
-$columnLine = 2;
-// 数据对应的行数(1开始)
-$dataLine = 3;
-// 键值对应的列(1开始)
-$keyColumn = 'id';
-// 哪些字段被导出以及导出的格式
-// 支持string number 和 json 三种格式
-// 未设置的字段不被导出
-$columns = [
-    'id'      => 'number',
-    'money'   => 'number',
-    'icon'    => 'number',
-    'texture' => 'number',
-];

BIN
projects/runball/source/road.xlsx


BIN
projects/runball/source/sign.xlsx


BIN
projects/runball/source/theme.xlsx


+ 0 - 343
projects/shot/output/doll.config.php

@@ -1,343 +0,0 @@
-<?php
-return array (
-  1001 => 
-  array (
-    'doll_id' => 1001,
-    'doll_name' => '超可爱玻尿酸鸭',
-    'seq' => 1,
-    'price' => 7900,
-    'consume' => 18,
-    'item_id' => 1001,
-    'icon' => 'boniaosuanya.jpg',
-    'speed' => 3,
-    'shot_cd' => 30,
-    'first_life_base_times' => 5,
-    'first_life_rate' => 20,
-    'second_life_base_times' => 10,
-    'second_life_rate' => 10,
-    'full_rate_times' => 50,
-    'first_tag' => 'new.png',
-    'second_tag' => 'hot.png',
-    'details' => 'detail_1001_1.jpg;detail_1001_2.jpg',
-  ),
-  1002 => 
-  array (
-    'doll_id' => 1002,
-    'doll_name' => 'line布朗熊',
-    'seq' => 11,
-    'price' => 3000,
-    'consume' => 10,
-    'item_id' => 1002,
-    'icon' => '',
-    'speed' => 3,
-    'shot_cd' => 30,
-    'first_life_base_times' => 5,
-    'first_life_rate' => 20,
-    'second_life_base_times' => 10,
-    'second_life_rate' => 10,
-    'full_rate_times' => 50,
-    'first_tag' => '',
-    'second_tag' => '',
-    'details' => '',
-  ),
-  1003 => 
-  array (
-    'doll_id' => 1003,
-    'doll_name' => 'line可妮兔',
-    'seq' => 15,
-    'price' => 3000,
-    'consume' => 10,
-    'item_id' => 1003,
-    'icon' => '',
-    'speed' => 3,
-    'shot_cd' => 30,
-    'first_life_base_times' => 5,
-    'first_life_rate' => 20,
-    'second_life_base_times' => 10,
-    'second_life_rate' => 10,
-    'full_rate_times' => 50,
-    'first_tag' => '',
-    'second_tag' => '',
-    'details' => '',
-  ),
-  1004 => 
-  array (
-    'doll_id' => 1004,
-    'doll_name' => '可莱丝补水保湿面膜',
-    'seq' => 2,
-    'price' => 1800,
-    'consume' => 12,
-    'item_id' => 1004,
-    'icon' => '',
-    'speed' => 3,
-    'shot_cd' => 30,
-    'first_life_base_times' => 5,
-    'first_life_rate' => 20,
-    'second_life_base_times' => 10,
-    'second_life_rate' => 10,
-    'full_rate_times' => 50,
-    'first_tag' => '',
-    'second_tag' => '',
-    'details' => '',
-  ),
-  1005 => 
-  array (
-    'doll_id' => 1005,
-    'doll_name' => '懒蛋蛋呕吐蛋黄君',
-    'seq' => 4,
-    'price' => 1000,
-    'consume' => 6,
-    'item_id' => 1005,
-    'icon' => '',
-    'speed' => 3,
-    'shot_cd' => 30,
-    'first_life_base_times' => 5,
-    'first_life_rate' => 20,
-    'second_life_base_times' => 10,
-    'second_life_rate' => 10,
-    'full_rate_times' => 50,
-    'first_tag' => '',
-    'second_tag' => '',
-    'details' => '',
-  ),
-  1006 => 
-  array (
-    'doll_id' => 1006,
-    'doll_name' => '拿荷叶龙猫',
-    'seq' => 5,
-    'price' => 3900,
-    'consume' => 12,
-    'item_id' => 1006,
-    'icon' => '',
-    'speed' => 3,
-    'shot_cd' => 30,
-    'first_life_base_times' => 5,
-    'first_life_rate' => 20,
-    'second_life_base_times' => 10,
-    'second_life_rate' => 10,
-    'full_rate_times' => 50,
-    'first_tag' => '',
-    'second_tag' => '',
-    'details' => '',
-  ),
-  1007 => 
-  array (
-    'doll_id' => 1007,
-    'doll_name' => '史迪仔挂件',
-    'seq' => 12,
-    'price' => 1200,
-    'consume' => 8,
-    'item_id' => 1007,
-    'icon' => '',
-    'speed' => 3,
-    'shot_cd' => 30,
-    'first_life_base_times' => 5,
-    'first_life_rate' => 20,
-    'second_life_base_times' => 10,
-    'second_life_rate' => 10,
-    'full_rate_times' => 50,
-    'first_tag' => '',
-    'second_tag' => '',
-    'details' => '',
-  ),
-  1008 => 
-  array (
-    'doll_id' => 1008,
-    'doll_name' => '史迪仔娃娃',
-    'seq' => 6,
-    'price' => 3000,
-    'consume' => 10,
-    'item_id' => 1008,
-    'icon' => '',
-    'speed' => 3,
-    'shot_cd' => 30,
-    'first_life_base_times' => 5,
-    'first_life_rate' => 20,
-    'second_life_base_times' => 10,
-    'second_life_rate' => 10,
-    'full_rate_times' => 50,
-    'first_tag' => '',
-    'second_tag' => '',
-    'details' => '',
-  ),
-  1009 => 
-  array (
-    'doll_id' => 1009,
-    'doll_name' => '粉红豹',
-    'seq' => 3,
-    'price' => 3000,
-    'consume' => 10,
-    'item_id' => 1009,
-    'icon' => '',
-    'speed' => 3,
-    'shot_cd' => 30,
-    'first_life_base_times' => 5,
-    'first_life_rate' => 20,
-    'second_life_base_times' => 10,
-    'second_life_rate' => 10,
-    'full_rate_times' => 50,
-    'first_tag' => '',
-    'second_tag' => '',
-    'details' => '',
-  ),
-  1010 => 
-  array (
-    'doll_id' => 1010,
-    'doll_name' => '帽子蒙奇奇',
-    'seq' => 7,
-    'price' => 3500,
-    'consume' => 15,
-    'item_id' => 1010,
-    'icon' => '',
-    'speed' => 3,
-    'shot_cd' => 30,
-    'first_life_base_times' => 5,
-    'first_life_rate' => 20,
-    'second_life_base_times' => 10,
-    'second_life_rate' => 10,
-    'full_rate_times' => 50,
-    'first_tag' => '',
-    'second_tag' => '',
-    'details' => '',
-  ),
-  1011 => 
-  array (
-    'doll_id' => 1011,
-    'doll_name' => '西瓜蒙奇奇',
-    'seq' => 8,
-    'price' => 3500,
-    'consume' => 15,
-    'item_id' => 1011,
-    'icon' => '',
-    'speed' => 3,
-    'shot_cd' => 30,
-    'first_life_base_times' => 5,
-    'first_life_rate' => 20,
-    'second_life_base_times' => 10,
-    'second_life_rate' => 10,
-    'full_rate_times' => 50,
-    'first_tag' => '',
-    'second_tag' => '',
-    'details' => '',
-  ),
-  1012 => 
-  array (
-    'doll_id' => 1012,
-    'doll_name' => '小鸡蒙奇奇',
-    'seq' => 13,
-    'price' => 3500,
-    'consume' => 15,
-    'item_id' => 1012,
-    'icon' => '',
-    'speed' => 3,
-    'shot_cd' => 30,
-    'first_life_base_times' => 5,
-    'first_life_rate' => 20,
-    'second_life_base_times' => 10,
-    'second_life_rate' => 10,
-    'full_rate_times' => 50,
-    'first_tag' => '',
-    'second_tag' => '',
-    'details' => '',
-  ),
-  1013 => 
-  array (
-    'doll_id' => 1013,
-    'doll_name' => '招财猫蒙奇奇',
-    'seq' => 16,
-    'price' => 3500,
-    'consume' => 15,
-    'item_id' => 1013,
-    'icon' => '',
-    'speed' => 3,
-    'shot_cd' => 30,
-    'first_life_base_times' => 5,
-    'first_life_rate' => 20,
-    'second_life_base_times' => 10,
-    'second_life_rate' => 10,
-    'full_rate_times' => 50,
-    'first_tag' => '',
-    'second_tag' => '',
-    'details' => '',
-  ),
-  1014 => 
-  array (
-    'doll_id' => 1014,
-    'doll_name' => '黛西沐浴擦',
-    'seq' => 9,
-    'price' => 3000,
-    'consume' => 12,
-    'item_id' => 1014,
-    'icon' => '',
-    'speed' => 3,
-    'shot_cd' => 30,
-    'first_life_base_times' => 5,
-    'first_life_rate' => 20,
-    'second_life_base_times' => 10,
-    'second_life_rate' => 10,
-    'full_rate_times' => 50,
-    'first_tag' => '',
-    'second_tag' => '',
-    'details' => '',
-  ),
-  1015 => 
-  array (
-    'doll_id' => 1015,
-    'doll_name' => '美乐蒂沐浴擦',
-    'seq' => 10,
-    'price' => 3000,
-    'consume' => 12,
-    'item_id' => 1015,
-    'icon' => '',
-    'speed' => 3,
-    'shot_cd' => 30,
-    'first_life_base_times' => 5,
-    'first_life_rate' => 20,
-    'second_life_base_times' => 10,
-    'second_life_rate' => 10,
-    'full_rate_times' => 50,
-    'first_tag' => '',
-    'second_tag' => '',
-    'details' => '',
-  ),
-  1016 => 
-  array (
-    'doll_id' => 1016,
-    'doll_name' => '唐老鸭沐浴擦',
-    'seq' => 14,
-    'price' => 3000,
-    'consume' => 12,
-    'item_id' => 1016,
-    'icon' => '',
-    'speed' => 3,
-    'shot_cd' => 30,
-    'first_life_base_times' => 5,
-    'first_life_rate' => 20,
-    'second_life_base_times' => 10,
-    'second_life_rate' => 10,
-    'full_rate_times' => 50,
-    'first_tag' => '',
-    'second_tag' => '',
-    'details' => '',
-  ),
-  1017 => 
-  array (
-    'doll_id' => 1017,
-    'doll_name' => 'KT沐浴擦',
-    'seq' => 17,
-    'price' => 3000,
-    'consume' => 12,
-    'item_id' => 1017,
-    'icon' => '',
-    'speed' => 3,
-    'shot_cd' => 30,
-    'first_life_base_times' => 5,
-    'first_life_rate' => 20,
-    'second_life_base_times' => 10,
-    'second_life_rate' => 10,
-    'full_rate_times' => 50,
-    'first_tag' => '',
-    'second_tag' => '',
-    'details' => '',
-  ),
-);

+ 0 - 111
projects/shot/output/mission.config.php

@@ -1,111 +0,0 @@
-<?php
-return array (
-  1 => 
-  array (
-    'mission_id' => 1,
-    'mission_type' => 1,
-    'desc' => '从公众号进入游戏',
-    'target' => 1,
-    'diamond' => 10,
-    'activity' => 5,
-  ),
-  2 => 
-  array (
-    'mission_id' => 2,
-    'mission_type' => 2,
-    'desc' => '射3次娃娃',
-    'target' => 3,
-    'diamond' => 5,
-    'activity' => 5,
-  ),
-  3 => 
-  array (
-    'mission_id' => 3,
-    'mission_type' => 2,
-    'desc' => '射5次娃娃',
-    'target' => 5,
-    'diamond' => 5,
-    'activity' => 5,
-  ),
-  4 => 
-  array (
-    'mission_id' => 4,
-    'mission_type' => 3,
-    'desc' => '分享到3个不同的微信群',
-    'target' => 3,
-    'diamond' => 10,
-    'activity' => 5,
-  ),
-  5 => 
-  array (
-    'mission_id' => 5,
-    'mission_type' => 4,
-    'desc' => '分享到朋友圈3次',
-    'target' => 3,
-    'diamond' => 10,
-    'activity' => 10,
-  ),
-  6 => 
-  array (
-    'mission_id' => 6,
-    'mission_type' => 2,
-    'desc' => '射10次娃娃',
-    'target' => 10,
-    'diamond' => 5,
-    'activity' => 5,
-  ),
-  7 => 
-  array (
-    'mission_id' => 7,
-    'mission_type' => 2,
-    'desc' => '射20次娃娃',
-    'target' => 20,
-    'diamond' => 10,
-    'activity' => 5,
-  ),
-  8 => 
-  array (
-    'mission_id' => 8,
-    'mission_type' => 2,
-    'desc' => '射30次娃娃',
-    'target' => 30,
-    'diamond' => 20,
-    'activity' => 10,
-  ),
-  9 => 
-  array (
-    'mission_id' => 9,
-    'mission_type' => 5,
-    'desc' => '射落1个娃娃',
-    'target' => 1,
-    'diamond' => 20,
-    'activity' => 10,
-  ),
-  10 => 
-  array (
-    'mission_id' => 10,
-    'mission_type' => 6,
-    'desc' => '累计充值达到6元',
-    'target' => 6,
-    'diamond' => 10,
-    'activity' => 10,
-  ),
-  11 => 
-  array (
-    'mission_id' => 11,
-    'mission_type' => 6,
-    'desc' => '累计充值达到30元',
-    'target' => 30,
-    'diamond' => 10,
-    'activity' => 20,
-  ),
-  12 => 
-  array (
-    'mission_id' => 12,
-    'mission_type' => 6,
-    'desc' => '累计充值达到100元',
-    'target' => 100,
-    'diamond' => 20,
-    'activity' => 30,
-  ),
-);

+ 0 - 101
projects/shot/output/product.config.php

@@ -1,101 +0,0 @@
-<?php
-return array (
-  2001 => 
-  array (
-    'product_id' => 2001,
-    'product_name' => '60金币',
-    'price' => 300,
-    'origin_price' => 300,
-    'diamond' => 60,
-    'diamond_free' => 0,
-    'seq' => 0,
-    'day_limit' => 1,
-    'rookie' => 1,
-    'finish_time' => '42368',
-    'icon' => '',
-  ),
-  2002 => 
-  array (
-    'product_id' => 2002,
-    'product_name' => '60金币',
-    'price' => 600,
-    'origin_price' => 600,
-    'diamond' => 60,
-    'diamond_free' => 0,
-    'seq' => 10,
-    'day_limit' => 0,
-    'rookie' => 0,
-    'finish_time' => '42368',
-    'icon' => '',
-  ),
-  2003 => 
-  array (
-    'product_id' => 2003,
-    'product_name' => '200金币',
-    'price' => 1990,
-    'origin_price' => 1990,
-    'diamond' => 200,
-    'diamond_free' => 20,
-    'seq' => 20,
-    'day_limit' => 0,
-    'rookie' => 0,
-    'finish_time' => '42368',
-    'icon' => '',
-  ),
-  2004 => 
-  array (
-    'product_id' => 2004,
-    'product_name' => '400金币',
-    'price' => 3990,
-    'origin_price' => 3990,
-    'diamond' => 400,
-    'diamond_free' => 50,
-    'seq' => 30,
-    'day_limit' => 0,
-    'rookie' => 0,
-    'finish_time' => '42368',
-    'icon' => '',
-  ),
-  2005 => 
-  array (
-    'product_id' => 2005,
-    'product_name' => '1000金币',
-    'price' => 9990,
-    'origin_price' => 9990,
-    'diamond' => 1000,
-    'diamond_free' => 200,
-    'seq' => 40,
-    'day_limit' => 0,
-    'rookie' => 0,
-    'finish_time' => '42368',
-    'icon' => '',
-  ),
-  2006 => 
-  array (
-    'product_id' => 2006,
-    'product_name' => '2000金币',
-    'price' => 19990,
-    'origin_price' => 19990,
-    'diamond' => 2000,
-    'diamond_free' => 500,
-    'seq' => 50,
-    'day_limit' => 0,
-    'rookie' => 0,
-    'finish_time' => '42368',
-    'icon' => '',
-  ),
-  3001 => 
-  array (
-    'product_id' => 3001,
-    'product_name' => '运费',
-    'price' => 800,
-    'origin_price' => 800,
-    'diamond' => 0,
-    'diamond_free' => 0,
-    'seq' => 0,
-    'day_limit' => 0,
-    'rookie' => 0,
-    'finish_time' => '',
-    'icon' => '',
-  ),
-);

+ 0 - 41
projects/shot/script/doll.php

@@ -1,41 +0,0 @@
-<?php
-
-// 配置
-// 字段名对应的行数(1开始)
-$columnLine = 3;
-// 数据对应的行数(1开始)
-$dataLine = 4;
-// 键值对应的列(1开始)
-$keyColumn = 'doll_id';
-// 哪些字段被导出以及导出的格式
-// 只支持string和number两种格式
-// 未设置的字段不被导出
-$columns = [
-    'doll_id'                => 'number',
-    'doll_name'              => 'string',
-    'seq'                    => 'number',
-    'price'                  => 'number',
-    'consume'                => 'number',
-    'item_id'                => 'number',
-    'icon'                   => 'string',
-    'speed'                  => 'number',
-    'shot_cd'                => 'number',
-    'first_life_base_times'  => 'number',
-    'first_life_rate'        => 'number',
-    'second_life_base_times' => 'number',
-    'second_life_rate'       => 'number',
-    'full_rate_times'        => 'number',
-    'first_tag'              => 'string',
-    'second_tag'             => 'string',
-    'details'                => 'string',
-];
-
-// 额外处理函数, 如果没有, 就不定义
-function doll_handle($data)
-{
-    foreach ($data as $key => $value) {
-        $value['price'] = intval($value['price'] * 100);
-        $data[$key]     = $value;
-    }
-    return $data;
-}

+ 0 - 30
projects/shot/script/item.php

@@ -1,30 +0,0 @@
-<?php
-
-// 配置
-// 字段名对应的行数(1开始)
-$columnLine = 3;
-// 数据对应的行数(1开始)
-$dataLine = 4;
-// 键值对应的列(1开始)
-$keyColumn = 'item_id';
-// 哪些字段被导出以及导出的格式
-// 只支持string和number两种格式
-// 未设置的字段不被导出
-$columns = [
-    'item_id'        => 'number',
-    'item_name'      => 'string',
-    'icon'           => 'string',
-    'size'           => 'string',
-    'purchase_price' => 'number',
-    'stock'          => 'number',
-];
-
-// 额外处理函数, 如果没有, 就不定义
-function item_handle($data)
-{
-    foreach ($data as $key => $value) {
-        $value['purchase_price'] = intval($value['purchase_price'] * 100);
-        $data[$key]    = $value;
-    }
-    return $data;
-}

+ 0 - 25
projects/shot/script/mission.php

@@ -1,25 +0,0 @@
-<?php
-
-// 配置
-// 字段名对应的行数(1开始)
-$columnLine = 3;
-// 数据对应的行数(1开始)
-$dataLine = 4;
-// 键值对应的列(1开始)
-$keyColumn = 'mission_id';
-// 哪些字段被导出以及导出的格式
-// 只支持string和number两种格式
-// 未设置的字段不被导出
-$columns = [
-    'mission_id'   => 'number',
-    'mission_type' => 'number',
-    'desc'         => 'string',
-    'target'       => 'number',
-    'diamond'      => 'number',
-    'activity'     => 'number',
-];
-
-function mission_handle($data)
-{
-    return $data;
-}

+ 0 - 30
projects/shot/script/product.php

@@ -1,30 +0,0 @@
-<?php
-
-// 配置
-// 字段名对应的行数(1开始)
-$columnLine = 3;
-// 数据对应的行数(1开始)
-$dataLine = 4;
-// 键值对应的列(1开始)
-$keyColumn = 'product_id';
-// 哪些字段被导出以及导出的格式
-// 只支持string和number两种格式
-// 未设置的字段不被导出
-$columns = [
-    'product_id'   => 'number',
-    'product_name' => 'string',
-    'price'        => 'number',
-    'origin_price' => 'number',
-    'diamond'      => 'number',
-    'diamond_free' => 'number',
-    'seq'          => 'number',
-    'day_limit'    => 'number',
-    'rookie'       => 'number',
-    'finish_time'  => 'string',
-    'icon'         => 'string',
-];
-
-function product_handle($data)
-{
-    return $data;
-}

BIN
projects/shot/source/doll.xlsx


BIN
projects/shot/source/item.xlsx


BIN
projects/shot/source/mission.xlsx


BIN
projects/shot/source/product.xlsx


BIN
projects/test/item.xlsx


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 1 - 0
projects/test/json/item.json


+ 68 - 0
projects/test/model/Item.php

@@ -0,0 +1,68 @@
+<?php
+
+class Item
+{
+    /**
+     * Returns table name mapped in the model.
+     *
+     * @return string
+     */
+    public static function getSource()
+    {
+        return 'item';
+    }
+
+    /**
+     * 获取导出给客户端所需要的字段
+     *
+     * @return array
+     */
+    public static function getToClientColumns()
+    {
+        // return ["item_id", "item_name", "icon", "size", "purchase_price", "stock", "place"];
+        return [];
+    }
+
+    /**
+     * 生成客户端需要的字段, 生成列表
+     *
+     * @return array
+     */
+    public static function getListForClient()
+    {
+        $data = [];
+        if (empty(self::getToClientColumns())) {
+            $data = array_values(self::getList());
+        } else {
+            foreach (self::getList() as $key => $value) {
+                foreach ($value as $k => $v) {
+                    if (!in_array($k, self::getToClientColumns())) {
+                        unset($value[$k]);
+                    }
+                }
+                $data[] = $value;
+            }
+        }
+        return $data;
+    }
+
+    /**
+     * 获取单条
+     *
+     * @return array
+     */
+    public static function get($configId)
+    {
+        return IConfig::get()->loadAppConfig(self::getSource(), $configId);
+    }
+
+    /**
+     * 获取所有配置
+     *
+     * @return array
+     */
+    public static function getList()
+    {
+        return IConfig::get()->loadAppConfig(self::getSource());
+    }
+}

+ 142 - 34
projects/shot/output/item.config.php

@@ -5,152 +5,260 @@ return array (
     'item_id' => 1001,
     'item_name' => '玻尿酸鸭',
     'icon' => '1001.png',
-    'size' => '30',
-    'purchase_price' => 1400,
+    'size' => 30.0,
+    'purchase_price' => 14.3,
     'stock' => 100,
+    'place' => 
+    array (
+      1 => 1,
+      2 => 2,
+    ),
   ),
   1002 => 
   array (
     'item_id' => 1002,
     'item_name' => 'line布朗熊',
     'icon' => '1002.png',
-    'size' => '20',
-    'purchase_price' => 400,
+    'size' => 20.0,
+    'purchase_price' => 4.5,
     'stock' => 100,
+    'place' => 
+    array (
+      0 => 1,
+      1 => 2,
+      2 => 3,
+      3 => 4,
+      4 => 5,
+    ),
   ),
   1003 => 
   array (
     'item_id' => 1003,
     'item_name' => 'line可妮兔',
     'icon' => '1003.png',
-    'size' => '20',
-    'purchase_price' => 400,
+    'size' => 20.0,
+    'purchase_price' => 4.5,
     'stock' => 100,
+    'place' => 
+    array (
+      0 => 'a',
+      1 => 'b',
+      2 => 'c',
+    ),
   ),
   1004 => 
   array (
     'item_id' => 1004,
     'item_name' => '可莱丝补水保湿面膜',
     'icon' => '1004.png',
-    'size' => '8',
-    'purchase_price' => 500,
+    'size' => 8.0,
+    'purchase_price' => 5.5,
     'stock' => 200,
+    'place' => 
+    array (
+      1 => 1,
+      2 => 2,
+    ),
   ),
   1005 => 
   array (
     'item_id' => 1005,
     'item_name' => '懒蛋蛋呕吐蛋黄君',
     'icon' => '1005.png',
-    'size' => '5',
-    'purchase_price' => 100,
+    'size' => 5.0,
+    'purchase_price' => 1.2,
     'stock' => 720,
+    'place' => 
+    array (
+      0 => 1,
+      1 => 2,
+      2 => 3,
+      3 => 4,
+      4 => 5,
+    ),
   ),
   1006 => 
   array (
     'item_id' => 1006,
     'item_name' => '拿荷叶龙猫',
     'icon' => '1006.png',
-    'size' => '20',
-    'purchase_price' => 700,
+    'size' => 20.0,
+    'purchase_price' => 7.2,
     'stock' => 100,
+    'place' => 
+    array (
+      0 => 'a',
+      1 => 'b',
+      2 => 'c',
+    ),
   ),
   1007 => 
   array (
     'item_id' => 1007,
     'item_name' => '史迪仔挂件',
     'icon' => '1007.png',
-    'size' => '5.5',
-    'purchase_price' => 200,
+    'size' => 5.5,
+    'purchase_price' => 2.55,
     'stock' => 300,
+    'place' => 
+    array (
+      1 => 1,
+      2 => 2,
+    ),
   ),
   1008 => 
   array (
     'item_id' => 1008,
     'item_name' => '史迪仔娃娃',
     'icon' => '1008.png',
-    'size' => '20',
-    'purchase_price' => 400,
+    'size' => 20.0,
+    'purchase_price' => 4.7,
     'stock' => 200,
+    'place' => 
+    array (
+      0 => 1,
+      1 => 2,
+      2 => 3,
+      3 => 4,
+      4 => 5,
+    ),
   ),
   1009 => 
   array (
     'item_id' => 1009,
     'item_name' => '粉红豹',
     'icon' => '1009.png',
-    'size' => '25',
-    'purchase_price' => 500,
+    'size' => 25.0,
+    'purchase_price' => 5.8,
     'stock' => 200,
+    'place' => 
+    array (
+      0 => 'a',
+      1 => 'b',
+      2 => 'c',
+    ),
   ),
   1010 => 
   array (
     'item_id' => 1010,
     'item_name' => '帽子蒙奇奇',
     'icon' => '1010.png',
-    'size' => '8',
-    'purchase_price' => 500,
+    'size' => 8.0,
+    'purchase_price' => 5.7,
     'stock' => 50,
+    'place' => 
+    array (
+      1 => 1,
+      2 => 2,
+    ),
   ),
   1011 => 
   array (
     'item_id' => 1011,
     'item_name' => '西瓜蒙奇奇',
     'icon' => '1011.png',
-    'size' => '8',
-    'purchase_price' => 500,
+    'size' => 8.0,
+    'purchase_price' => 5.7,
     'stock' => 50,
+    'place' => 
+    array (
+      0 => 1,
+      1 => 2,
+      2 => 3,
+      3 => 4,
+      4 => 5,
+    ),
   ),
   1012 => 
   array (
     'item_id' => 1012,
     'item_name' => '小鸡蒙奇奇',
     'icon' => '1012.png',
-    'size' => '8',
-    'purchase_price' => 500,
+    'size' => 8.0,
+    'purchase_price' => 5.7,
     'stock' => 50,
+    'place' => 
+    array (
+      0 => 'a',
+      1 => 'b',
+      2 => 'c',
+    ),
   ),
   1013 => 
   array (
     'item_id' => 1013,
     'item_name' => '招财猫蒙奇奇',
     'icon' => '1013.png',
-    'size' => '8',
-    'purchase_price' => 500,
+    'size' => 8.0,
+    'purchase_price' => 5.7,
     'stock' => 50,
+    'place' => 
+    array (
+      1 => 1,
+      2 => 2,
+    ),
   ),
   1014 => 
   array (
     'item_id' => 1014,
     'item_name' => '黛西沐浴擦',
     'icon' => '1014.png',
-    'size' => '15',
-    'purchase_price' => 500,
+    'size' => 15.0,
+    'purchase_price' => 5.1,
     'stock' => 50,
+    'place' => 
+    array (
+      0 => 1,
+      1 => 2,
+      2 => 3,
+      3 => 4,
+      4 => 5,
+    ),
   ),
   1015 => 
   array (
     'item_id' => 1015,
     'item_name' => '美乐蒂沐浴擦',
     'icon' => '1015.png',
-    'size' => '15',
-    'purchase_price' => 500,
+    'size' => 15.0,
+    'purchase_price' => 5.1,
     'stock' => 50,
+    'place' => 
+    array (
+      0 => 'a',
+      1 => 'b',
+      2 => 'c',
+    ),
   ),
   1016 => 
   array (
     'item_id' => 1016,
     'item_name' => '唐老鸭沐浴擦',
     'icon' => '1016.png',
-    'size' => '15',
-    'purchase_price' => 500,
+    'size' => 15.0,
+    'purchase_price' => 5.1,
     'stock' => 50,
+    'place' => 
+    array (
+      1 => 1,
+      2 => 2,
+    ),
   ),
   1017 => 
   array (
     'item_id' => 1017,
     'item_name' => 'KT沐浴擦',
     'icon' => '1017.png',
-    'size' => '15',
-    'purchase_price' => 500,
+    'size' => 15.0,
+    'purchase_price' => 5.1,
     'stock' => 50,
+    'place' => 
+    array (
+      0 => 1,
+      1 => 2,
+      2 => 3,
+      3 => 4,
+      4 => 5,
+    ),
   ),
 );

BIN
projects/test/source/item.xlsx


+ 0 - 66
projects/tww/output/mission.config.php

@@ -1,66 +0,0 @@
-<?php
-return array (
-  1 =>
-  array (
-    'mission_id' => 1,
-    'mission_type' => 'sign',
-    'name' => '签到',
-    'desc' => '',
-    'target' => 1,
-    'activity' => 10,
-  ),
-  2 =>
-  array (
-    'mission_id' => 2,
-    'mission_type' => 'login',
-    'name' => '每日登陆',
-    'desc' => '',
-    'target' => 1,
-    'activity' => 10,
-  ),
-  3 =>
-  array (
-    'mission_id' => 3,
-    'mission_type' => 'gift',
-    'name' => '赠送碎片',
-    'desc' => '',
-    'target' => 1,
-    'activity' => 15,
-  ),
-  4 =>
-  array (
-    'mission_id' => 4,
-    'mission_type' => 'play',
-    'name' => '游戏一局',
-    'desc' => '',
-    'target' => 1,
-    'activity' => 10,
-  ),
-  5 =>
-  array (
-    'mission_id' => 5,
-    'mission_type' => 'hit',
-    'name' => '获取碎片',
-    'desc' => '',
-    'target' => 2,
-    'activity' => 15,
-  ),
-  6 =>
-  array (
-    'mission_id' => 6,
-    'mission_type' => 'invite_code_share',
-    'name' => '邀请码分享',
-    'desc' => '',
-    'target' => 1,
-    'activity' => 20,
-  ),
-  7 =>
-  array (
-    'mission_id' => 7,
-    'mission_type' => 'invite',
-    'name' => '好友填码',
-    'desc' => '',
-    'target' => 1,
-    'activity' => 20,
-  ),
-);

+ 0 - 120
projects/tww/output/product.config.php

@@ -1,120 +0,0 @@
-<?php
-return array (
-  1001 => 
-  array (
-    'product_id' => 1001,
-    'product_name' => '运费',
-    'product_type' => 'freight',
-    'price' => 5,
-    'origin_price' => 5,
-    'gold' => 0,
-    'gift_gold' => 0,
-    'reward_day' => 0,
-    'reward_amount' => 0,
-    'icon' => '',
-  ),
-  2001 => 
-  array (
-    'product_id' => 2001,
-    'product_name' => '超值周卡',
-    'product_type' => 'week_card',
-    'price' => 28,
-    'origin_price' => 28,
-    'gold' => 280,
-    'gift_gold' => 175,
-    'reward_day' => 7,
-    'reward_amount' => 25,
-    'icon' => '',
-  ),
-  2002 => 
-  array (
-    'product_id' => 2002,
-    'product_name' => '超值月卡',
-    'product_type' => 'month_card',
-    'price' => 100,
-    'origin_price' => 100,
-    'gold' => 1000,
-    'gift_gold' => 900,
-    'reward_day' => 30,
-    'reward_amount' => 30,
-    'icon' => '',
-  ),
-  3001 => 
-  array (
-    'product_id' => 3001,
-    'product_name' => '100金币',
-    'product_type' => 'gold',
-    'price' => 10,
-    'origin_price' => 10,
-    'gold' => 100,
-    'gift_gold' => 0,
-    'reward_day' => 0,
-    'reward_amount' => 0,
-    'icon' => '',
-  ),
-  3002 => 
-  array (
-    'product_id' => 3002,
-    'product_name' => '300金币',
-    'product_type' => 'gold',
-    'price' => 30,
-    'origin_price' => 30,
-    'gold' => 300,
-    'gift_gold' => 20,
-    'reward_day' => 0,
-    'reward_amount' => 0,
-    'icon' => '',
-  ),
-  3003 => 
-  array (
-    'product_id' => 3003,
-    'product_name' => '980金币',
-    'product_type' => 'gold',
-    'price' => 98,
-    'origin_price' => 98,
-    'gold' => 980,
-    'gift_gold' => 100,
-    'reward_day' => 0,
-    'reward_amount' => 0,
-    'icon' => '',
-  ),
-  3004 => 
-  array (
-    'product_id' => 3004,
-    'product_name' => '1980金币',
-    'product_type' => 'gold',
-    'price' => 198,
-    'origin_price' => 198,
-    'gold' => 1980,
-    'gift_gold' => 300,
-    'reward_day' => 0,
-    'reward_amount' => 0,
-    'icon' => '',
-  ),
-  3005 => 
-  array (
-    'product_id' => 3005,
-    'product_name' => '2980金币',
-    'product_type' => 'gold',
-    'price' => 298,
-    'origin_price' => 298,
-    'gold' => 2980,
-    'gift_gold' => 600,
-    'reward_day' => 0,
-    'reward_amount' => 0,
-    'icon' => '',
-  ),
-  3006 => 
-  array (
-    'product_id' => 3006,
-    'product_name' => '6980金币',
-    'product_type' => 'gold',
-    'price' => 698,
-    'origin_price' => 698,
-    'gold' => 6980,
-    'gift_gold' => 1800,
-    'reward_day' => 0,
-    'reward_amount' => 0,
-    'icon' => '',
-  ),
-);

+ 0 - 25
projects/tww/script/mission.php

@@ -1,25 +0,0 @@
-<?php
-
-// 配置
-// 字段名对应的行数(1开始)
-$columnLine = 2;
-// 数据对应的行数(1开始)
-$dataLine = 3;
-// 键值对应的列(1开始)
-$keyColumn = 'mission_id';
-// 哪些字段被导出以及导出的格式
-// 只支持string和number两种格式
-// 未设置的字段不被导出
-$columns = [
-    'mission_id'   => 'number',
-    'mission_type' => 'string',
-    'name'         => 'string',
-    'desc'         => 'string',
-    'target'       => 'number',
-    'activity'     => 'number',
-];
-
-function mission_handle($data)
-{
-    return $data;
-}

+ 0 - 29
projects/tww/script/product.php

@@ -1,29 +0,0 @@
-<?php
-
-// 配置
-// 字段名对应的行数(1开始)
-$columnLine = 3;
-// 数据对应的行数(1开始)
-$dataLine = 4;
-// 键值对应的列(1开始)
-$keyColumn = 'product_id';
-// 哪些字段被导出以及导出的格式
-// 只支持string和number两种格式
-// 未设置的字段不被导出
-$columns = [
-    'product_id'    => 'number',
-    'product_name'  => 'string',
-    'product_type'  => 'string',
-    'price'         => 'number',
-    'origin_price'  => 'number',
-    'gold'          => 'number',
-    'gift_gold'     => 'number',
-    'reward_day'     => 'number',
-    'reward_amount' => 'number',
-    'icon'          => 'string',
-];
-
-function product_handle($data)
-{
-    return $data;
-}

BIN
projects/tww/source/mission.xlsx


BIN
projects/tww/source/product.xlsx


+ 0 - 10
test.php

@@ -1,10 +0,0 @@
-<?php
-
-require 'vendor/autoload.php';
-
-$spreadsheet = new PhpOffice\PhpSpreadsheet\Spreadsheet();
-$sheet       = $spreadsheet->getActiveSheet();
-$sheet->setCellValue('A1', 'Hello World !');
-
-$writer = new PhpOffice\PhpSpreadsheet\Writer\Xlsx($spreadsheet);
-$writer->save('hello world.xlsx');