|
@@ -72,7 +72,6 @@ public class RechargeService {
|
|
|
|
|
|
|
|
/** 创建充值订单 */
|
|
/** 创建充值订单 */
|
|
|
public Object create(RechargeParam param){
|
|
public Object create(RechargeParam param){
|
|
|
- String userId = authHelper.getCurrentUser().getUser();
|
|
|
|
|
Wallet userWallet = walletDao.findTop1ById(param.getWalletId());
|
|
Wallet userWallet = walletDao.findTop1ById(param.getWalletId());
|
|
|
//判断钱包是否初始化
|
|
//判断钱包是否初始化
|
|
|
if (userWallet==null){
|
|
if (userWallet==null){
|
|
@@ -103,8 +102,6 @@ public class RechargeService {
|
|
|
|
|
|
|
|
/** 下单 */
|
|
/** 下单 */
|
|
|
public Object order(OrderParam param){
|
|
public Object order(OrderParam param){
|
|
|
- String userId = authHelper.getCurrentUser().getUser();
|
|
|
|
|
-
|
|
|
|
|
RechargeRecord record = rechargeRecordDao.findByOutTradeNo(param.getOutTradeNo());
|
|
RechargeRecord record = rechargeRecordDao.findByOutTradeNo(param.getOutTradeNo());
|
|
|
if (record==null){
|
|
if (record==null){
|
|
|
return ResultContent.buildFail("充值订单:"+param.getOutTradeNo()+"不存在");
|
|
return ResultContent.buildFail("充值订单:"+param.getOutTradeNo()+"不存在");
|