|
@@ -14,7 +14,6 @@ import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.util.DigestUtils;
|
|
|
|
|
|
-import com.llisoft.pay.util.DecimalUtil;
|
|
|
import com.llisoft.pay.util.HttpUtil;
|
|
|
import com.llisoft.pay.util.JsonUtil;
|
|
|
import com.llisoft.pay.util.XmlUtil;
|
|
@@ -177,8 +176,8 @@ public class WxPayService {
|
|
|
}
|
|
|
// 完成支付状态
|
|
|
String paynum = resultMap.get("out_trade_no"); // paynum
|
|
|
- String tradenum = resultMap.get("trade_no"); // 支付宝交易号
|
|
|
- int totalAmount = DecimalUtil.toInt(resultMap.get("total_amount")); // 实际支付金额
|
|
|
+ String tradenum = resultMap.get("transaction_id"); // 微信交易号
|
|
|
+ int totalAmount = Integer.parseInt(resultMap.get("total_fee")); // 实际支付金额
|
|
|
payService.finish(paynum, tradenum, totalAmount, PayService.FLAG_NOTIFY);
|
|
|
return true;
|
|
|
}
|