|
@@ -2673,6 +2673,12 @@ namespace MOKA_Factory_Tools
|
|
bool bResult = jObject["Result"].Value<bool>();
|
|
bool bResult = jObject["Result"].Value<bool>();
|
|
msg = jObject["Error"].Value<string>();
|
|
msg = jObject["Error"].Value<string>();
|
|
JArray jAry = (JArray)JsonConvert.DeserializeObject(jObject["Data"].ToString());
|
|
JArray jAry = (JArray)JsonConvert.DeserializeObject(jObject["Data"].ToString());
|
|
|
|
+ if (jAry == null)
|
|
|
|
+ {
|
|
|
|
+ Log.WriteErrorLog("GetMIKey Json-null:" + hResult.StatusDescription + "\r\n" + hResult.Html + "\r\nAddress: " + item.URL + "\r\nPostdata: " + item.Postdata);
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
|
|
+
|
|
if ( jAry.Count > 0 )
|
|
if ( jAry.Count > 0 )
|
|
{
|
|
{
|
|
mikey = JsonConvert.DeserializeObject<MIKey>(jAry[0].ToString());
|
|
mikey = JsonConvert.DeserializeObject<MIKey>(jAry[0].ToString());
|