|
@@ -26,11 +26,11 @@ namespace MOKA_Factory_Tools
|
|
|
|
|
|
public static void SetMexicanConfig(bool bMexican = false)
|
|
public static void SetMexicanConfig(bool bMexican = false)
|
|
{
|
|
{
|
|
- if (bMexican)
|
|
|
|
- url_getMessage = "http://10.138.96.32:81/IDManage/v1/order/getMessage";
|
|
|
|
|
|
+ if (bMexican)
|
|
|
|
+ url_getMessage = "http://10.138.96.32:81/IDManage/v1/order/getMessage";
|
|
else
|
|
else
|
|
url_getMessage = "https://cn.uc.qhmoka.com/scbc-server/clientType/getMessage.do";
|
|
url_getMessage = "https://cn.uc.qhmoka.com/scbc-server/clientType/getMessage.do";
|
|
-
|
|
|
|
|
|
+
|
|
if ( TestMode.testMode)
|
|
if ( TestMode.testMode)
|
|
url_getMessage = "http://test.scbc.qhmoka.com/scbc-server/clientType/getMessage.do";
|
|
url_getMessage = "http://test.scbc.qhmoka.com/scbc-server/clientType/getMessage.do";
|
|
}
|
|
}
|
|
@@ -994,6 +994,11 @@ namespace MOKA_Factory_Tools
|
|
//北美项目,不抄从idm上获取的DSN,用smse上的
|
|
//北美项目,不抄从idm上获取的DSN,用smse上的
|
|
public static bool GetDSNFromSmes(string SN, out string DSN)
|
|
public static bool GetDSNFromSmes(string SN, out string DSN)
|
|
{
|
|
{
|
|
|
|
+ //如果是墨西哥
|
|
|
|
+ if (CommonMethod.GetLoginAccout().Equals("Mexico", StringComparison.OrdinalIgnoreCase))
|
|
|
|
+ {
|
|
|
|
+ url_getDSNFromSmes = "http://SMES.TMSA.MX:9006/api/xm/GetXMTVParts?TVSN=";
|
|
|
|
+ }
|
|
string msg;
|
|
string msg;
|
|
DSN = "";
|
|
DSN = "";
|
|
|
|
|