| | |
| | | var bindResult = Newtonsoft.Json.JsonConvert.DeserializeObject<ResponsePackNew>(msg); |
| | | if (bindResult != null) |
| | | { |
| | | string tipTitle = Language.StringByID(StringId.Tip); |
| | | if (bindResult.Code == "147021") { |
| | | string tipTitle = "提示"; |
| | | string tipMsg = "无法绑定该设备,请从河东渠道购买该类型产品"; |
| | | if (Language.CurrentLanguage != "Chinese") |
| | | { |
| | | tipTitle = "Tip"; |
| | | tipMsg = "Unable to bind this device. Please purchase this type of product from HDL"; |
| | | } |
| | | string tipMsg = Language.StringByID(StringId.UnableToBindThisDeviceTip); |
| | | new PublicAssmebly().TipMsg(tipTitle, tipMsg); |
| | | } |
| | | else |
| | | { |
| | | string tipTitle = "提示"; |
| | | string tipMsg = $"{bindResult.message}({bindResult.Code})"; |
| | | if (Language.CurrentLanguage != "Chinese") |
| | | { |
| | | tipTitle = "Tip"; |
| | | } |
| | | new PublicAssmebly().TipMsg(tipTitle, tipMsg); |
| | | } |
| | | } |
| | |
| | | var bindResult = Newtonsoft.Json.JsonConvert.DeserializeObject<ResponsePackNew>(msg); |
| | | if (bindResult != null) |
| | | { |
| | | string tipTitle = Language.StringByID(StringId.Tip); |
| | | if (bindResult.Code == "147021") |
| | | { |
| | | string tipTitle = "提示"; |
| | | string tipMsg = "无法绑定该设备,请从河东渠道购买该类型产品"; |
| | | if (Language.CurrentLanguage != "Chinese") |
| | | { |
| | | tipTitle = "Tip"; |
| | | tipMsg = "Unable to bind this device. Please purchase this type of product from HDL"; |
| | | } |
| | | string tipMsg = Language.StringByID(StringId.UnableToBindThisDeviceTip); |
| | | new PublicAssmebly().TipMsg(tipTitle, tipMsg); |
| | | } |
| | | else |
| | | { |
| | | string tipTitle = "提示"; |
| | | string tipMsg = $"{bindResult.message}({bindResult.Code})"; |
| | | if (Language.CurrentLanguage != "Chinese") |
| | | { |
| | | tipTitle = "Tip"; |
| | | } |
| | | new PublicAssmebly().TipMsg(tipTitle, tipMsg); |
| | | } |
| | | } |