|
@@ -132,6 +132,13 @@ public class WxJsjpController extends BaseController {
|
|
|
order.setUserName(gzptUserInfo.getUserName());
|
|
|
order.setLogincode(gzptUserInfo.getLogincode());
|
|
|
order.setGoodsName(sysDictData.getDictLabel());
|
|
|
+
|
|
|
+ if("特训包".equals(sysDictData.getDictLabel())){
|
|
|
+ order.setIsFz(1); //分账
|
|
|
+ } else {
|
|
|
+ order.setIsFz(0); //不分账
|
|
|
+ }
|
|
|
+
|
|
|
order.setGoodsType(1);
|
|
|
order.setPhoneType(wxOrderDTO.getPhoneType()); //手机类型
|
|
|
if ("yntms".equals(gzptUserInfo.getCity())) { //如果是一诺地市
|
|
@@ -260,6 +267,9 @@ public class WxJsjpController extends BaseController {
|
|
|
.put("notify_url", wxpayConfig.getNotifyUrl())
|
|
|
.put("out_trade_no", order.getOutTradeNo());
|
|
|
rootNode.putObject("amount").put("total", order.getTotal());
|
|
|
+ if (order.getIsFz() == 1) {
|
|
|
+ rootNode.putObject("settle_info").put("profit_sharing", true);
|
|
|
+ }
|
|
|
objectMapper.writeValue(bos, rootNode);
|
|
|
httpPost.setEntity(new StringEntity(rootNode.toString(), "utf-8"));
|
|
|
HttpResponse response = httpClient.execute(httpPost);
|