From f1e33a19419eb19e03ea8ae592b458541be3c4ac Mon Sep 17 00:00:00 2001
From: client_linchunjie <461730578@qq.com>
Date: 星期二, 14 八月 2018 16:57:52 +0800
Subject: [PATCH] 2538【前端】优化充值商品编号表
---
Core/GameEngine/Model/Config/OrderInfoConfig.cs | 63 ++++++++++++++++---------------
1 files changed, 33 insertions(+), 30 deletions(-)
diff --git a/Core/GameEngine/Model/Config/OrderInfoConfig.cs b/Core/GameEngine/Model/Config/OrderInfoConfig.cs
index 665ac8d..5d67301 100644
--- a/Core/GameEngine/Model/Config/OrderInfoConfig.cs
+++ b/Core/GameEngine/Model/Config/OrderInfoConfig.cs
@@ -1,47 +1,50 @@
-锘�//--------------------------------------------------------
-// [Author]: 绗簩涓栫晫
-// [ Date ]: Wednesday, July 25, 2018
-//--------------------------------------------------------
-
-using UnityEngine;
-using System;
-
-namespace TableConfig {
-
-
+锘�//--------------------------------------------------------
+// [Author]: 绗簩涓栫晫
+// [ Date ]: Tuesday, August 14, 2018
+//--------------------------------------------------------
+
+using UnityEngine;
+using System;
+
+namespace TableConfig {
+
+
public partial class OrderInfoConfig : ConfigBase {
+ public int id { get ; private set ; }
public string OrderInfo { get ; private set; }
public string AppId { get ; private set; }
public float PayRMBNum { get ; private set; }
public int CTGID { get ; private set ; }
-
+
public override string getKey()
{
- return OrderInfo.ToString();
- }
-
- public override void Parse() {
+ return id.ToString();
+ }
+
+ public override void Parse() {
try
{
- OrderInfo = rawContents[0].Trim();
+ id=IsNumeric(rawContents[0]) ? int.Parse(rawContents[0]):0;
- AppId = rawContents[1].Trim();
+ OrderInfo = rawContents[1].Trim();
- PayRMBNum=IsNumeric(rawContents[2]) ? float.Parse(rawContents[2]):0;
+ AppId = rawContents[2].Trim();
- CTGID=IsNumeric(rawContents[3]) ? int.Parse(rawContents[3]):0;
+ PayRMBNum=IsNumeric(rawContents[3]) ? float.Parse(rawContents[3]):0;
+
+ CTGID=IsNumeric(rawContents[4]) ? int.Parse(rawContents[4]):0;
}
catch (Exception ex)
{
DesignDebug.Log(ex);
- }
- }
-
- }
-
-}
-
-
-
-
+ }
+ }
+
+ }
+
+}
+
+
+
+
--
Gitblit v1.8.0