浏览代码

接口补充

cyzhao 3 年之前
父节点
当前提交
7fe974ae24
共有 2 个文件被更改,包括 5 次插入3 次删除
  1. 2 0
      Gameserver/Amfphp/model/User/Ins_battleItem.php
  2. 3 3
      Gameserver/Amfphp/process/StoreProc.php

+ 2 - 0
Gameserver/Amfphp/model/User/Ins_battleItem.php

@@ -14,6 +14,8 @@ namespace loyalsoft;
  * @author c'y'zhao
  */
 class Ins_battleItem extends Object_ext{
+    public $index = 0;
+
     public $id = 0;
 
     public $num = 0;

+ 3 - 3
Gameserver/Amfphp/process/StoreProc.php

@@ -141,9 +141,9 @@ class StoreProc {
      */
     public static function changeBettleItem() {
         $type = req()->paras[0];        # 提取参数       
-        $itemid = req()->paras[1];      # 提取参数
-        $index = req()->paras[2];      # 提取参数
-        
+        $index = req()->paras[1];      # 提取参数
+        $itemid = req()->paras[2];      # 提取参数
+               
         $store = ctx()->store(true);
         if($type == 0){//添加          
             $item = new Ins_battleItem();