|  | @ -200,7 +200,7 @@ public class PayService {
 | 
	
		
			
				|  |  |         resJson.put("payTime", DateUtil.dateToStrLong(businessOrderDO.getPayTime()));
 | 
	
		
			
				|  |  |         resJson.put("createTime",DateUtil.dateToStrLong(businessOrderDO.getCreateTime()));
 | 
	
		
			
				|  |  |         resJson.put("updateTime",DateUtil.dateToStrLong(businessOrderDO.getUpdateTime()));
 | 
	
		
			
				|  |  |         long time = (businessOrderDO.getCreateTime().getTime() - System.currentTimeMillis())/1000;
 | 
	
		
			
				|  |  |         long time = (businessOrderDO.getCreateTime().getTime() - System.currentTimeMillis())/1000+60*30;
 | 
	
		
			
				|  |  |         if(time<0&&status==0){
 | 
	
		
			
				|  |  |             cancleOrder(id);
 | 
	
		
			
				|  |  |             status = 2;
 | 
	
	
		
			
				|  | @ -516,8 +516,8 @@ public class PayService {
 | 
	
		
			
				|  |  |         if (businessOrderDO.getStatus()!=0) {
 | 
	
		
			
				|  |  |             return ObjEnvelop.getError("待支付订单才能支付",-1);
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  |         long time = (businessOrderDO.getCreateTime().getTime() - System.currentTimeMillis())/1000;
 | 
	
		
			
				|  |  |         if(time<=0){
 | 
	
		
			
				|  |  |         long time = (System.currentTimeMillis() - businessOrderDO.getCreateTime().getTime())/1000;
 | 
	
		
			
				|  |  |         if(time>=60*30){
 | 
	
		
			
				|  |  |             cancleOrder(businessOrderDO.getId());
 | 
	
		
			
				|  |  |             return ObjEnvelop.getError("支付超时,订单已关闭",-1);
 | 
	
		
			
				|  |  |         }
 | 
	
	
		
			
				|  | @ -535,10 +535,13 @@ public class PayService {
 | 
	
		
			
				|  |  |         // 此路径是微信服务器调用支付结果通知路径
 | 
	
		
			
				|  |  |         reqMap.put("notify_url", serverUrl+"pay/open/wxPayNotify");
 | 
	
		
			
				|  |  |         reqMap.put("out_trade_no", businessOrderDO.getOrderNo());
 | 
	
		
			
				|  |  |         reqMap.put("spbill_create_ip", IpUtil.getIpAddr(request));
 | 
	
		
			
				|  |  |         reqMap.put("spbill_create_ip", IpUtil.getOneIpAddress(request));
 | 
	
		
			
				|  |  |         reqMap.put("product_id", businessOrderDO.getOrderNo());
 | 
	
		
			
				|  |  |         // 订单总金额,单位为分
 | 
	
		
			
				|  |  |         Double payAmountIntValue = businessOrderDO.getPayPrice() * 100;
 | 
	
		
			
				|  |  |         if(payAmountIntValue.intValue()<=0){
 | 
	
		
			
				|  |  |             return ObjEnvelop.getError("支付金额必须大于0",-1);
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  |         reqMap.put("total_fee", String.valueOf(payAmountIntValue.intValue()));
 | 
	
		
			
				|  |  |         reqMap.put("trade_type", "NATIVE");
 | 
	
		
			
				|  |  |         // 创建第一次签名
 | 
	
	
		
			
				|  | @ -591,8 +594,8 @@ public class PayService {
 | 
	
		
			
				|  |  |         if (businessOrderDO.getStatus()!=0) {
 | 
	
		
			
				|  |  |             return ObjEnvelop.getError("待支付订单才能支付",-1);
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  |         long time = (businessOrderDO.getCreateTime().getTime() - System.currentTimeMillis())/1000;
 | 
	
		
			
				|  |  |         if(time<=0){
 | 
	
		
			
				|  |  |         long time = (System.currentTimeMillis() - businessOrderDO.getCreateTime().getTime())/1000;
 | 
	
		
			
				|  |  |         if(time>=60*30){
 | 
	
		
			
				|  |  |             cancleOrder(businessOrderDO.getId());
 | 
	
		
			
				|  |  |             return ObjEnvelop.getError("支付超时,订单已关闭",-1);
 | 
	
		
			
				|  |  |         }
 | 
	
	
		
			
				|  | @ -612,10 +615,13 @@ public class PayService {
 | 
	
		
			
				|  |  |         // 此路径是微信服务器调用支付结果通知路径
 | 
	
		
			
				|  |  |         reqMap.put("notify_url", serverUrl+"pay/open/wxPayNotify");
 | 
	
		
			
				|  |  |         reqMap.put("out_trade_no", businessOrderDO.getOrderNo());
 | 
	
		
			
				|  |  |         reqMap.put("spbill_create_ip", IpUtil.getIpAddr(request));
 | 
	
		
			
				|  |  |         reqMap.put("spbill_create_ip", IpUtil.getOneIpAddress(request));
 | 
	
		
			
				|  |  |         reqMap.put("product_id", businessOrderDO.getOrderNo());
 | 
	
		
			
				|  |  |         // 订单总金额,单位为分
 | 
	
		
			
				|  |  |         Double payAmountIntValue = businessOrderDO.getPayPrice() * 100;
 | 
	
		
			
				|  |  |         if(payAmountIntValue.intValue()<=0){
 | 
	
		
			
				|  |  |             return ObjEnvelop.getError("支付金额必须大于0",-1);
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  |         reqMap.put("total_fee", String.valueOf(payAmountIntValue.intValue()));
 | 
	
		
			
				|  |  |         reqMap.put("trade_type", "JSAPI");
 | 
	
		
			
				|  |  |         reqMap.put("openid", patientDO.getOpenid());
 |