|
@@ -47,12 +47,12 @@ public class AppStatistics {
|
|
|
*/
|
|
*/
|
|
|
public void sendDataToServer(int type,int subType,String subString){
|
|
public void sendDataToServer(int type,int subType,String subString){
|
|
|
String openid = PreferenceUtils.getPrefString(SheepApp.mContext, UMConfigUtils.LOGIN_OPENID,"");
|
|
String openid = PreferenceUtils.getPrefString(SheepApp.mContext, UMConfigUtils.LOGIN_OPENID,"");
|
|
|
-
|
|
|
|
|
|
|
+ int uid = android.text.TextUtils.isEmpty(openid)?0:Integer.valueOf(openid);
|
|
|
String deviceId = DeviceUtil.getDeviceId(SheepApp.mContext);
|
|
String deviceId = DeviceUtil.getDeviceId(SheepApp.mContext);
|
|
|
ApiService apiService =SheepApp.getInstance().getNetComponent().getApiService();
|
|
ApiService apiService =SheepApp.getInstance().getNetComponent().getApiService();
|
|
|
JSONObject jsonObject = new JSONObject();
|
|
JSONObject jsonObject = new JSONObject();
|
|
|
//openid要转换成int类型
|
|
//openid要转换成int类型
|
|
|
- jsonObject.put("uid",android.text.TextUtils.isEmpty(openid)?0:Integer.valueOf(openid));
|
|
|
|
|
|
|
+ jsonObject.put("uid",uid);
|
|
|
jsonObject.put("type",type);
|
|
jsonObject.put("type",type);
|
|
|
jsonObject.put("subtype",subType);
|
|
jsonObject.put("subtype",subType);
|
|
|
jsonObject.put("substring",subString);
|
|
jsonObject.put("substring",subString);
|