data report
parent
70e62476f5
commit
d24fce49ab
|
@ -25,10 +25,7 @@ public class CoreService implements RPCRequestIFace.Iface {
|
||||||
@Override
|
@Override
|
||||||
public Result deliveryRecharge(int uid, int goodsId, String openId, String orderId, long orderTime, int amount) throws InvalidOperException, TException {
|
public Result deliveryRecharge(int uid, int goodsId, String openId, String orderId, long orderTime, int amount) throws InvalidOperException, TException {
|
||||||
try {
|
try {
|
||||||
User user = UserManager.getUser(uid);
|
return BuyGoodsLogic.sendGoods(uid, goodsId, openId, orderId, orderTime, amount);
|
||||||
Result result = BuyGoodsLogic.sendGoods(uid, goodsId, openId, orderId, orderTime, amount);
|
|
||||||
KtEventUtils.onKtEvent(user, ParamEventBean.UserPayEvent,goodsId,orderId,result.getResultCode(),amount);
|
|
||||||
return result;
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
User user = UserManager.getUserInMem(uid);
|
User user = UserManager.getUserInMem(uid);
|
||||||
Result result = new Result();
|
Result result = new Result();
|
||||||
|
|
|
@ -98,7 +98,7 @@ public class KtEventUtils {
|
||||||
int goodsId = (int)parm[0];
|
int goodsId = (int)parm[0];
|
||||||
String orderId = (String)parm[1];
|
String orderId = (String)parm[1];
|
||||||
String payValid = payResult[(int)parm[2]];
|
String payValid = payResult[(int)parm[2]];
|
||||||
String amount = String.valueOf( ((int)parm[3]/10));
|
String amount = String.valueOf( ((int)parm[3]));
|
||||||
SRechargeCommodityConfig sRechargeCommodityConfig = SRechargeCommodityConfig.rechargeCommodityConfigMap.get(goodsId);
|
SRechargeCommodityConfig sRechargeCommodityConfig = SRechargeCommodityConfig.rechargeCommodityConfigMap.get(goodsId);
|
||||||
paramEventBean.add(sRechargeCommodityConfig.getName());
|
paramEventBean.add(sRechargeCommodityConfig.getName());
|
||||||
paramEventBean.add(orderId);
|
paramEventBean.add(orderId);
|
||||||
|
|
|
@ -198,6 +198,7 @@ public class BuyGoodsLogic {
|
||||||
}
|
}
|
||||||
MailLogic.getInstance().sendMail(user.getId(),title,content,rewardStr,nowTime, Global.MAIL_EFFECTIVE_TIME);
|
MailLogic.getInstance().sendMail(user.getId(),title,content,rewardStr,nowTime, Global.MAIL_EFFECTIVE_TIME);
|
||||||
resultRes.setResultCode(1);
|
resultRes.setResultCode(1);
|
||||||
|
KtEventUtils.onKtEvent(user, ParamEventBean.UserPayEvent,goodsId,orderId,resultRes.getResultCode(),price);
|
||||||
return resultRes;
|
return resultRes;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue