generated from root/miduo_server
log
parent
8bcafe79f3
commit
40f3b6067d
|
@ -85,6 +85,8 @@ public class RechargeController {
|
|||
LOGGER.info("callback=> rPCClient is null ");
|
||||
}
|
||||
}
|
||||
}else{
|
||||
LOGGER.info("not get the user url,the openID={} ",userId);
|
||||
}
|
||||
if (result != null && result.getResultCode() == 1) {
|
||||
LOGGER.info(" callback==>RPC result : ResultCode : " + result.getResultCode() + "; ResultMsg : " + result.getResultMsg());
|
||||
|
@ -98,13 +100,13 @@ public class RechargeController {
|
|||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
String orderId = "-1882186820";
|
||||
String userId ="123151339.sujie";
|
||||
String productID = "8";
|
||||
int amount = 60;
|
||||
String orderId = "-1610530820";
|
||||
String userId ="123151331.sujie";
|
||||
String productID = "2";
|
||||
int amount = 30;
|
||||
|
||||
String orderTime = "1562139874";
|
||||
String roleUid ="10029692";
|
||||
String orderTime = "1562142276";
|
||||
String roleUid ="20000056";
|
||||
String sig = MD5Util.encrypByMd5(orderId+userId+productID+userId+amount+orderTime+roleUid+ KTSDKConstans.appkey);
|
||||
System.out.println(sig);
|
||||
System.out.println(sig);
|
||||
|
|
|
@ -79,7 +79,7 @@ public class MyStringRedisTemplate {
|
|||
}
|
||||
//设置密码
|
||||
connectionFactory.setPassword(redisProperties.getPassword());
|
||||
connectionFactory.setDatabase(redisProperties.getDatabase());
|
||||
// connectionFactory.setDatabase(redisProperties.getDatabase());
|
||||
|
||||
//初始化connectionFactory
|
||||
connectionFactory.afterPropertiesSet();
|
||||
|
|
|
@ -188,7 +188,9 @@ public class RedisUtil {
|
|||
public <T> T getObject(String type, String key, Class<T> clazz, int expireTime) {
|
||||
try {
|
||||
String valueStr = redisObjectTemplate.opsForValue().get(type + RedisUserKey.Delimiter_colon + key);
|
||||
LOGGER.error("the rediskey={}",type + RedisUserKey.Delimiter_colon + key);
|
||||
if (valueStr == null) {
|
||||
LOGGER.error("the rediskey={} is null",type + RedisUserKey.Delimiter_colon + key);
|
||||
return null;
|
||||
}
|
||||
if(expireTime > 0){
|
||||
|
|
Loading…
Reference in New Issue