Pārlūkot izejas kodu

移除奇技淫巧

小柒2012 7 gadi atpakaļ
vecāks
revīzija
895b5e07ad

+ 4 - 4
src/main/java/com/itstyle/Application.java

@@ -38,10 +38,10 @@ public class Application extends WebMvcConfigurerAdapter {
 	public static void main(String[] args) throws InterruptedException,
 			IOException {
 		SpringApplication.run(Application.class, args);
-		// 初始化 支付宝 微信 银联 参数 涉及机密 此文件不提交 请自行配置加载
-		//Configs.init("zfbinfo.properties");
-		//ConfigUtil.init("wxinfo.properties");
-		//SDKConfig.getConfig().loadPropertiesFromSrc();
+		//初始化 支付宝-微信-银联相关参数,涉及机密,此文件不会提交,请自行配置相关参数并加载
+		//Configs.init("zfbinfo.properties");//支付宝
+		//ConfigUtil.init("wxinfo.properties");//微信
+		//SDKConfig.getConfig().loadPropertiesFromSrc();//银联
 		logger.info("支付项目启动 ");
 	}
 

+ 82 - 7
src/main/java/com/itstyle/common/model/Product.java

@@ -1,17 +1,13 @@
 package com.itstyle.common.model;
 import java.io.Serializable;
-
-import lombok.AllArgsConstructor;
-import lombok.Data;
-import lombok.NoArgsConstructor;
 /**
  * 产品订单信息
  * 创建者 科帮网
  * 创建时间	2017年7月27日
  */
-@Data                
-@NoArgsConstructor     
-@AllArgsConstructor
+//@Data                
+//@NoArgsConstructor     
+//@AllArgsConstructor
 public class Product implements Serializable {
 	private static final long serialVersionUID = 1L;
 	private String productId;// 商品ID
@@ -24,4 +20,83 @@ public class Product implements Serializable {
 	private Short payType;// 支付类型(1:支付宝 2:微信 3:银联)
 	private Short payWay;// 支付方式 (1:PC,平板 2:手机)
 	private String frontUrl;// 前台回调地址  非扫码支付使用
+	
+	public Product() {
+		super();
+	}
+	public Product(String productId, String subject, String body,
+			String totalFee, String outTradeNo, String spbillCreateIp,
+			String attach, Short payType, Short payWay, String frontUrl) {
+		super();
+		this.productId = productId;
+		this.subject = subject;
+		this.body = body;
+		this.totalFee = totalFee;
+		this.outTradeNo = outTradeNo;
+		this.spbillCreateIp = spbillCreateIp;
+		this.attach = attach;
+		this.payType = payType;
+		this.payWay = payWay;
+		this.frontUrl = frontUrl;
+	}
+	public String getProductId() {
+		return productId;
+	}
+	public void setProductId(String productId) {
+		this.productId = productId;
+	}
+	public String getSubject() {
+		return subject;
+	}
+	public void setSubject(String subject) {
+		this.subject = subject;
+	}
+	public String getBody() {
+		return body;
+	}
+	public void setBody(String body) {
+		this.body = body;
+	}
+	public String getTotalFee() {
+		return totalFee;
+	}
+	public void setTotalFee(String totalFee) {
+		this.totalFee = totalFee;
+	}
+	public String getOutTradeNo() {
+		return outTradeNo;
+	}
+	public void setOutTradeNo(String outTradeNo) {
+		this.outTradeNo = outTradeNo;
+	}
+	public String getSpbillCreateIp() {
+		return spbillCreateIp;
+	}
+	public void setSpbillCreateIp(String spbillCreateIp) {
+		this.spbillCreateIp = spbillCreateIp;
+	}
+	public String getAttach() {
+		return attach;
+	}
+	public void setAttach(String attach) {
+		this.attach = attach;
+	}
+	public Short getPayType() {
+		return payType;
+	}
+	public void setPayType(Short payType) {
+		this.payType = payType;
+	}
+	public Short getPayWay() {
+		return payWay;
+	}
+	public void setPayWay(Short payWay) {
+		this.payWay = payWay;
+	}
+	public String getFrontUrl() {
+		return frontUrl;
+	}
+	public void setFrontUrl(String frontUrl) {
+		this.frontUrl = frontUrl;
+	}
 }

+ 6 - 0
src/main/java/com/itstyle/modules/alipay/service/impl/AliPayServiceImpl.java

@@ -35,6 +35,12 @@ import com.itstyle.common.model.Product;
 import com.itstyle.common.utils.CommonUtil;
 import com.itstyle.modules.alipay.service.IAliPayService;
 import com.itstyle.modules.alipay.util.AliPayConfig;
+/**
+ * TODO
+ * 创建者 科帮网
+ * 创建时间	2018年1月15日
+ *
+ */
 @Service
 public class AliPayServiceImpl implements IAliPayService {
 	private static final Logger logger = LoggerFactory.getLogger(AliPayServiceImpl.class);