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