Jim пре 11 месеци
родитељ
комит
f1a8c7f0d8

+ 2 - 1
serverlogic/src/main/java/com/ljsd/CoreService.java

@@ -24,7 +24,7 @@ public class CoreService implements RPCRequestIFace.Iface {
     @Override
     public Result deliveryRecharge(int uid, String goodsId, String openId, String orderId, long orderTime, int amount) throws InvalidOperException, TException {
         try {
-            LOGGER.info("deliveryRecharge start",uid );
+            LOGGER.info("deliveryRecharge start: {}",uid );
             return BuyGoodsLogic.sendGoods(uid, goodsId, openId, orderId, orderTime, amount,false, null);
         } catch (Exception e) {
             User  user = UserManager.getUserInMem(uid);
@@ -33,6 +33,7 @@ public class CoreService implements RPCRequestIFace.Iface {
             if(user == null){
                 LOGGER.info("the uid={} not found",uid );
             }
+            LOGGER.error("Exception details:", e);
             result.setResultMsg("server exce");
           //  KtEventUtils.onKtEvent(user, ParamEventBean.UserPayEvent,goodsId,orderId,result.getResultCode(),amount);
            return result;

+ 0 - 1
serverlogic/src/main/java/com/ljsd/jieling/handler/gtw/GetWorldArenaChallengeResponseHandler.java

@@ -23,7 +23,6 @@ import config.SMServerArenaSetting;
 import config.SSkillLogicConfig;
 import config.SSkyLadderReward;
 import config.SSpecialConfig;
-import javafx.application.Application;
 import manager.STableManager;
 import rpc.net.RpcMessage;
 import rpc.net.gtGBaseHandler;

+ 6 - 0
serverlogic/src/main/java/com/ljsd/jieling/logic/store/BuyGoodsLogic.java

@@ -921,6 +921,12 @@ public class BuyGoodsLogic {
             cr.andOperator(Criteria.where("billno").is(orderId));
             query.addCriteria(cr);
             payVo = mongoTemplate.findOne(query, PayVo.class);
+            if (payVo== null){
+                LOGGER.error("the uid={},the goodId={},payVo null", uid, goodsId);
+                resultRes.setResultMsg("payVo null");
+                resultRes.setResultCode(0);
+                return resultRes;
+            }
             channel = payVo.getChannel();
         } else {
             channel = testChannel;

+ 3 - 3
serverlogic/src/main/resources/application.properties

@@ -27,7 +27,7 @@ spring.redis.database=0
 #spring.redis.password=@emiplay_m5fangzhi_redis
 spring.redis.host=127.0.0.1
 spring.redis.port=6379
-spring.redis.password=
+spring.redis.password=f7bd979b98fb334d
 #-----\u672C\u5730------
 #spring.redis.host=127.0.0.1
 #spring.redis.port=6379
@@ -46,9 +46,9 @@ spring.redis.expireTime = -1
 #spring.data.mongodb2.uri = mongodb://mongouser:ysj#2017#ljsd@111.231.54.96:27017/develop_ysj_wx_1
 #mongodb2 develop
 
-spring.data.mongodb.uri = mongodb://127.0.0.1:27017/m5_x1_game_10001
+spring.data.mongodb.uri = mongodb://root:f7bd979b98fb334d@127.0.0.1:27017/m5_x1_game_10001?authSource=admin
 mongo.uriDbNamePrefix = m5_x1_game_
-spring.data.mongodbcore.uri = mongodb://127.0.0.1:27017/m5_x1_login
+spring.data.mongodbcore.uri = mongodb://root:f7bd979b98fb334d@127.0.0.1:27017/m5_tk_login?authSource=admin
 
 #spring.data.mongodb.uri = mongodb://root:KJM!45kz6z#k8@120.92.216.50:27017/game_10001?authSource=admin
 #mongo.uriDbNamePrefix = game_