eason.qian 7 years ago
parent 4cbbc04a2e
commit c8ffdbdf73

@ -244,7 +244,11 @@ 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")));
if (clientType.equals("iphone")) {
res.put("skip_clearing",!res.getBoolean("skip_clearing"));
}
return res;
}
@Override

Loading…
Cancel
Save