"flag":-2,"msg":"Invalid parameter productkey"

0 投票
最新提问 12月 16, 2015 分类:SDK | 用户: woyaokshini (150 分)
重新显示 12月 16, 2015 用户:woyaokshini
12-16 14:10:25.810: D/NetworkUtil(2525): URL = http://192.168.234.39/razor/web/index.php?/ums/posttag
12-16 14:10:25.810: D/NetworkUtil(2525): Data = {"appkey":"007b82dd7fd186519d9e6adfc09784d4","tags":"test tags","deviceid":"870c5adf93ac01c1939e499fd2926d5e"}
12-16 14:10:26.555: D/NetworkUtil(2525): Status code=200
12-16 14:10:26.560: D/NetworkUtil(2525): returnString = <div style="border:1px solid #990000;padding-left:20px;margin:0 0 10px 0;">
12-16 14:10:26.560: D/NetworkUtil(2525): <h4>A PHP Error was encountered</h4>
12-16 14:10:26.560: D/NetworkUtil(2525): <p>Severity: Notice</p>
12-16 14:10:26.560: D/NetworkUtil(2525): <p>Message:  Undefined property: stdClass::$productkey</p>
12-16 14:10:26.560: D/NetworkUtil(2525): <p>Filename: servicepublicclass/posttagpublic.php</p>
12-16 14:10:26.560: D/NetworkUtil(2525): <p>Line Number: 12</p>
12-16 14:10:26.560: D/NetworkUtil(2525): </div>{"flag":-2,"msg":"Invalid parameter productkey"}
12-16 14:10:26.560: E/NetworkUtil(2525): org.json.JSONException: Value <div of type java.lang.String cannot be converted to JSONObject
12-16 14:10:26.565: W/System.err(2525): org.json.JSONException: Value <div of type java.lang.String cannot be converted to JSONObject
12-16 14:10:26.570: W/System.err(2525):     at org.json.JSON.typeMismatch(JSON.java:111)
12-16 14:10:26.575: W/System.err(2525):     at org.json.JSONObject.<init>(JSONObject.java:158)
12-16 14:10:26.575: W/System.err(2525):     at org.json.JSONObject.<init>(JSONObject.java:171)
12-16 14:10:26.575: W/System.err(2525):     at com.wbtech.ums.NetworkUtil.parse(NetworkUtil.java:65)
12-16 14:10:26.575: W/System.err(2525):     at com.wbtech.ums.TagManager.PostTag(TagManager.java:64)
12-16 14:10:26.575: W/System.err(2525):     at com.wbtech.ums.UmsAgent$6.run(UmsAgent.java:223)
12-16 14:10:26.575: W/System.err(2525):     at java.lang.Thread.run(Thread.java:841)
12-16 14:10:26.580: W/System.err(2525):     at android.os.Handler.handleCallback(Handler.java:730)
12-16 14:10:26.580: W/System.err(2525):     at android.os.Handler.dispatchMessage(Handler.java:92)
12-16 14:10:26.585: W/System.err(2525):     at android.os.Looper.loop(Looper.java:176)
12-16 14:10:26.585: W/System.err(2525):     at android.os.HandlerThread.run(HandlerThread.java:61)

 

 

<meta-data
    android:name="UMS_APPKEY"
    android:value="007b82dd7fd186519d9e6adfc09784d4" />

1个回答

0 投票
最新回答 12月 23, 2015 用户: qhaizhang (2,720 分)

redis

 function addUserTag($content)
    {
***
        $data = array('deviceid' => $posttag -> deviceid, 'tags' => $posttag -> tags, 'productkey' => $posttag -> appkey);
        ***
    }

...