File tree Expand file tree Collapse file tree
pay-java-wx/src/main/java/com/egzosn/pay/wx/api Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ package com .egzosn .pay .wx .api ;
2+
3+ import com .egzosn .pay .common .bean .Order ;
4+ import com .egzosn .pay .common .bean .PayOrder ;
5+
6+ import java .math .BigDecimal ;
7+ import java .util .HashMap ;
8+ import java .util .Map ;
9+
10+ /**
11+ * @author egan
12+ * @date 2020/3/10 21:22
13+ * <a href="mailto:zheng.zaosheng@iwhalecloud.com">郑灶生</a>
14+ * <br/>
15+ * email: zheng.zaosheng@iwhalecloud.com
16+ */
17+ public interface WxConst {
18+ /**
19+ * 微信请求地址
20+ */
21+ String URI = "https://api.mch.weixin.qq.com/" ;
22+ /**
23+ * 沙箱
24+ */
25+ String SANDBOXNEW = "sandboxnew/" ;
26+
27+ String SUCCESS = "SUCCESS" ;
28+ String RETURN_CODE = "return_code" ;
29+ String SIGN = "sign" ;
30+ String CIPHER_ALGORITHM = "RSA/ECB/OAEPWITHSHA-1ANDMGF1PADDING" ;
31+ String FAILURE = "failure" ;
32+ String APPID = "appid" ;
33+ String HMAC_SHA256 = "HMAC-SHA256" ;
34+ String HMACSHA256 = "HMACSHA256" ;
35+ String RETURN_MSG_CODE = "return_msg" ;
36+ String RESULT_CODE = "result_code" ;
37+ String MCH_ID = "mch_id" ;
38+ String NONCE_STR = "nonce_str" ;
39+ String OUT_TRADE_NO = "out_trade_no" ;
40+
41+
42+ }
Original file line number Diff line number Diff line change @@ -205,11 +205,12 @@ public JSONObject unifiedOrder(PayOrder order) {
205205
206206 ((WxTransactionType ) order .getTransactionType ()).setAttribute (parameters , order );
207207 //可覆盖参数
208- setParameters (parameters , "notify_url" , order );
208+ /* setParameters(parameters, "notify_url", order);
209209 setParameters(parameters, "goods_tag", order);
210210 setParameters(parameters, "limit_pay", order);
211211 setParameters(parameters, "receipt", order);
212- setParameters (parameters , "product_id" , order );
212+ setParameters(parameters, "product_id", order);*/
213+ parameters .putAll (order .getAttrs ());
213214 parameters = preOrderHandler (parameters , order );
214215 setSign (parameters );
215216
You can’t perform that action at this time.
0 commit comments