kira 6 years ago
parent d742d4b3cf
commit 857c4517a8

@ -545,7 +545,6 @@ public class RetailAppServiceImp implements RetailAppService {
@Override @Override
public JSONObject userInfo(JSONObject device) { public JSONObject userInfo(JSONObject device) {
logger.debug("userinfo device json:" + device.toJSONString());
String accountId = device.getString("account_id"); String accountId = device.getString("account_id");
if (accountId != null) { if (accountId != null) {
JSONObject user = signInAccountService.getClient(accountId); JSONObject user = signInAccountService.getClient(accountId);

@ -55,6 +55,7 @@ import au.com.royalpay.payment.manage.notice.core.MailService;
import au.com.royalpay.payment.manage.signin.beans.TodoNotice; import au.com.royalpay.payment.manage.signin.beans.TodoNotice;
import au.com.royalpay.payment.manage.signin.core.ManagerTodoNoticeProvider; import au.com.royalpay.payment.manage.signin.core.ManagerTodoNoticeProvider;
import au.com.royalpay.payment.manage.signin.core.SignInAccountService; import au.com.royalpay.payment.manage.signin.core.SignInAccountService;
import au.com.royalpay.payment.manage.support.sms.SmsSender;
import au.com.royalpay.payment.manage.system.core.ClientContractService; import au.com.royalpay.payment.manage.system.core.ClientContractService;
import au.com.royalpay.payment.manage.system.core.MailGunService; import au.com.royalpay.payment.manage.system.core.MailGunService;
import au.com.royalpay.payment.manage.tradelog.beans.TradeLogQuery; import au.com.royalpay.payment.manage.tradelog.beans.TradeLogQuery;
@ -290,6 +291,8 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
@Resource @Resource
private MpWechatApiProvider mpWechatApiProvider; private MpWechatApiProvider mpWechatApiProvider;
private final int REFUSE_CLIENT_TEMPLID = 166108;
@PostConstruct @PostConstruct
public void init() { public void init() {
tags.add("account"); tags.add("account");
@ -3055,6 +3058,10 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
} }
saveClientAuditProcess(client.getIntValue("client_id"), open_status, client.getInteger("open_status"), "打回," + refuse_remark, manager); saveClientAuditProcess(client.getIntValue("client_id"), open_status, client.getInteger("open_status"), "打回," + refuse_remark, manager);
clientModifySupport.processClientModify(auditModify); clientModifySupport.processClientModify(auditModify);
if(client.getIntValue("source") == 4){
client.getString("contact_phone");
}
try { try {
sendMessageToBD(client, refuse_remark); sendMessageToBD(client, refuse_remark);
} catch (Exception e) { } catch (Exception e) {

@ -37,6 +37,7 @@ public class ClientModifySupportImpl implements ClientModifySupport {
@Override @Override
public void processClientConfigModify(ClientConfigModify clientConfigModify) { public void processClientConfigModify(ClientConfigModify clientConfigModify) {
clientConfigModify.doModify(merchantInfoProvider, clientConfigMapper,clientMapper,mongoTemplate); int clientId = clientConfigModify.doModify(merchantInfoProvider, clientConfigMapper,clientMapper,mongoTemplate);
clientInfoCacheSupport.clearClientCache(clientId);
} }
} }

@ -0,0 +1,26 @@
package au.com.royalpay.payment.manage.support.sms;
import com.github.qcloudsms.SmsSingleSender;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
/**
* @author kira
* @date 2018/8/1
*/
@Service
public class SmsSender {
@Value("${royalpay.sms.appid:1400094878}")
private static int appId;
@Value("${royalpay.sms.appkey:43390d81e20c5191c278fbf4cd275be2}")
private static String appKey;
private static class SmsSenderIner{
private static SmsSingleSender sender = new SmsSingleSender(appId, appKey);
}
public static SmsSingleSender getSender(){
return SmsSenderIner.sender;
}
}
Loading…
Cancel
Save