cyzhao hace 3 años
padre
commit
7f4bc3215b

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

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
  // author: gwang 
- // 日期: 2021-09-23 11:04:16
+ // 日期: 2021-09-24 16:35:29
 ////////////////////
 ////////////////////
 namespace loyalsoft;
 namespace loyalsoft;
 /**
 /**

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

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
  // author: gwang 
- // 日期: 2021-09-23 11:04:16
+ // 日期: 2021-09-24 16:35:29
 ////////////////////
 ////////////////////
 
 
 /**
 /**

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

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
  // author: gwang 
- // 日期: 2021-08-23 14:29:45
+ // 日期: 2021-09-23 17:59:19
 ////////////////////
 ////////////////////
 
 
 
 

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

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
  // author: gwang 
- // 日期: 2021-09-23 10:37:06
+ // 日期: 2021-09-24 10:08:30
 ////////////////////
 ////////////////////
 
 
 
 

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

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
  // author: gwang 
- // 日期: 2021-09-23 10:37:06
+ // 日期: 2021-09-24 10:08:30
 ////////////////////
 ////////////////////
 
 
 
 

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

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
  // author: gwang 
- // 日期: 2021-09-17 16:46:53
+ // 日期: 2021-09-24 10:48:57
 ////////////////////
 ////////////////////
 
 
 
 

+ 6 - 1
Gameserver/Amfphp/model/Const/sm_item_taskcard.php

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
  // author: gwang 
- // 日期: 2021-09-23 09:56:23
+ // 日期: 2021-09-24 16:26:23
 ////////////////////
 ////////////////////
 
 
 
 
@@ -84,5 +84,10 @@ class sm_item_taskcard
     */
     */
     public $cost;
     public $cost;
 
 
+    /**
+    * @var Int32 任务完成学分奖励 default(0) 
+    */
+    public $score;
+
 }
 }
 
 

+ 14 - 6
Gameserver/Public/gamesys/app/providers/userBaseParams.php

@@ -4,10 +4,22 @@ include_once dirname(__FILE__) . '/../main.php';
 $params = query_paras();
 $params = query_paras();
 
 
 $uid = $params['date']['uid'];
 $uid = $params['date']['uid'];
-$zoneid = $params['date']['zoneid'];
+$zoneid = $params['date']['zoneid'];//1:经验;2:金币;3钻石
 $type = $params['date']['type'];
 $type = $params['date']['type'];
 $date = $params['date']['ts'];
 $date = $params['date']['ts'];
 
 
+$sqlName = "tab_userbaseParams";
+
+$arr = daoInst()->select("*")->from($sqlName)
+        ->where('type')->eq($type)
+        ->andWhere('zoneid')->eq($zoneid)
+        ->andWhere('uid')->eq($uid)
+        ->fetchAll();
+
+$result = new stdClass();
+$result->data = $arr;
+$result->err = 0;
+/*
 $key = "userbaseParams-".$uid."-".$zoneid;
 $key = "userbaseParams-".$uid."-".$zoneid;
 
 
 $num = gMem()->llen($key);
 $num = gMem()->llen($key);
@@ -18,9 +30,5 @@ foreach ($arr as $item) {
         $resultArr[] = $item;
         $resultArr[] = $item;
     }
     }
 }
 }
-
-$result = new stdClass();
-$result->data = $resultArr;
-$result->err = 0;
-
+*/
 echo json_encode($result);
 echo json_encode($result);