master
wangning 7 years ago
commit ea8b3049dc

@ -244,7 +244,12 @@ public class RetailAppServiceImp implements RetailAppService {
public JSONObject getClientInfo(JSONObject device) {
String clientType = device.getString("client_type");
deviceSupport.findRegister(clientType);
return SignInAccountServiceImpl.clientInfoWithNoSecretInfo(clientManager.getClientInfo(device.getIntValue("client_id")));
JSONObject res = SignInAccountServiceImpl.clientInfoWithNoSecretInfo(clientManager.getClientInfo(device.getIntValue("client_id")));
res.put("is_skip_clearing",res.getBoolean("skip_clearing"));
if (clientType.equals("iphone")) {
res.put("skip_clearing",!res.getBoolean("skip_clearing"));
}
return res;
}
@Override

Loading…
Cancel
Save