|
|
|
@ -148,7 +148,7 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
|
|
|
|
|
@Resource
|
|
|
|
|
private ClientMapper clientMapper;
|
|
|
|
|
@Resource
|
|
|
|
|
private ClientConfigMapper clientConfigMapper;
|
|
|
|
|
private ClientConfigServiceImpl clientConfigService;
|
|
|
|
|
@Resource
|
|
|
|
|
private ClientDeviceMapper clientDeviceMapper;
|
|
|
|
|
@Resource
|
|
|
|
@ -2253,12 +2253,12 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
|
|
|
|
|
record.put("client_id",client.getIntValue("client_id"));
|
|
|
|
|
record.put("refund_pwd", pwdHash);
|
|
|
|
|
record.put("refund_pwd_salt", salt);
|
|
|
|
|
clientConfigMapper.update(record);
|
|
|
|
|
clientConfigService.update(record);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public void validRefundPwd(JSONObject account, String pwd) {
|
|
|
|
|
JSONObject clientConfig = clientConfigMapper.find(account.getIntValue("client_id"));
|
|
|
|
|
JSONObject clientConfig = clientConfigService.find(account.getIntValue("client_id"));
|
|
|
|
|
String salt = clientConfig.getString("refund_pwd_salt");
|
|
|
|
|
String pwdHash = PasswordUtils.hashPwd(pwd, salt);
|
|
|
|
|
if (!clientConfig.getString("refund_pwd").equals(pwdHash)) {
|
|
|
|
@ -2271,7 +2271,7 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
|
|
|
|
|
JSONObject record = new JSONObject();
|
|
|
|
|
record.put("client_id", clientId);
|
|
|
|
|
record.put("weekend_delay", delay);
|
|
|
|
|
clientConfigMapper.update(record);
|
|
|
|
|
clientConfigService.update(record);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@ -2664,7 +2664,7 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
|
|
|
|
|
JSONObject updateObj = new JSONObject();
|
|
|
|
|
updateObj.put("client_id", client.getIntValue("client_id"));
|
|
|
|
|
updateObj.put("paypad_version", paypad_version);
|
|
|
|
|
clientConfigMapper.update(updateObj);
|
|
|
|
|
clientConfigService.update(updateObj);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@ -2677,7 +2677,7 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
|
|
|
|
|
JSONObject record = new JSONObject();
|
|
|
|
|
record.put("client_id", client_id);
|
|
|
|
|
record.put("manual_settle", manual_settle);
|
|
|
|
|
clientConfigMapper.update(record);
|
|
|
|
|
clientConfigService.update(record);
|
|
|
|
|
|
|
|
|
|
JSONObject actClientLog = new JSONObject();
|
|
|
|
|
actClientLog.put("client_id", client_id);
|
|
|
|
@ -2699,7 +2699,7 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
|
|
|
|
|
JSONObject updateObj = new JSONObject();
|
|
|
|
|
updateObj.put("client_id", client.getIntValue("client_id"));
|
|
|
|
|
updateObj.put("qrcode_surcharge", paySurcharge);
|
|
|
|
|
clientConfigMapper.update(updateObj);
|
|
|
|
|
clientConfigService.update(updateObj);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@ -2712,7 +2712,7 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
|
|
|
|
|
JSONObject updateObj = new JSONObject();
|
|
|
|
|
updateObj.put("client_id", client.getIntValue("client_id"));
|
|
|
|
|
updateObj.put("api_surcharge", enableApiSurcharge);
|
|
|
|
|
clientConfigMapper.update(updateObj);
|
|
|
|
|
clientConfigService.update(updateObj);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@ -2729,7 +2729,7 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
|
|
|
|
|
JSONObject updateObj = new JSONObject();
|
|
|
|
|
updateObj.put("client_id", client.getIntValue("client_id"));
|
|
|
|
|
updateObj.put("retail_surcharge", paySurcharge);
|
|
|
|
|
clientConfigMapper.update(updateObj);
|
|
|
|
|
clientConfigService.update(updateObj);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|