generated from root/miduo_server
fix recharge
parent
e4e02f1f76
commit
32525c518b
|
@ -1,9 +1,6 @@
|
||||||
package com.jmfy.controller;
|
package com.jmfy.controller;
|
||||||
|
|
||||||
import com.google.gson.Gson;
|
import com.google.gson.Gson;
|
||||||
import com.google.gson.JsonElement;
|
|
||||||
import com.google.gson.JsonObject;
|
|
||||||
import com.google.gson.reflect.TypeToken;
|
|
||||||
import com.jmfy.dto.*;
|
import com.jmfy.dto.*;
|
||||||
import com.jmfy.thrift.idl.RPCRequestIFace;
|
import com.jmfy.thrift.idl.RPCRequestIFace;
|
||||||
import com.jmfy.thrift.idl.Result;
|
import com.jmfy.thrift.idl.Result;
|
||||||
|
@ -73,7 +70,7 @@ public class RechargeController {
|
||||||
ResultVo resultVo;
|
ResultVo resultVo;
|
||||||
if (cPayOrder != null) {
|
if (cPayOrder != null) {
|
||||||
LOGGER.info("callback==>creditId={},uId={} orderId is exit!!!",cUserInfo.getId(),cUserInfo.getOpenId());
|
LOGGER.info("callback==>creditId={},uId={} orderId is exit!!!",cUserInfo.getId(),cUserInfo.getOpenId());
|
||||||
resultVo = new ResultVo(12, "send reward success !!!!");
|
resultVo = new ResultVo(1, "SUCCESS");
|
||||||
} else {
|
} else {
|
||||||
DateFormat dateTimeformat = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
|
DateFormat dateTimeformat = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
|
||||||
String date = dateTimeformat.format(new Date());
|
String date = dateTimeformat.format(new Date());
|
||||||
|
@ -111,9 +108,9 @@ public class RechargeController {
|
||||||
if (result != null && result.getResultCode() == 1) {
|
if (result != null && result.getResultCode() == 1) {
|
||||||
LOGGER.info(" callback==>RPC result : ResultCode : " + result.getResultCode() + "; ResultMsg : " + result.getResultMsg());
|
LOGGER.info(" callback==>RPC result : ResultCode : " + result.getResultCode() + "; ResultMsg : " + result.getResultMsg());
|
||||||
cuserDao.addCpayOrder(cPayOrder);
|
cuserDao.addCpayOrder(cPayOrder);
|
||||||
resultVo = new ResultVo(1, "send reward success !!!!");
|
resultVo = new ResultVo(1, "SUCCESS");
|
||||||
} else {
|
} else {
|
||||||
resultVo = new ResultVo(11, "send reward fail !!!!");
|
resultVo = new ResultVo(11, "fail!!!!");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return JsonUtil.getInstence().getGson().toJson(resultVo);
|
return JsonUtil.getInstence().getGson().toJson(resultVo);
|
||||||
|
|
Loading…
Reference in New Issue