|  | @@ -21,6 +21,7 @@ import com.zanxiang.module.util.exception.BaseException;
 | 
											
												
													
														|  |  import com.zanxiang.module.web.util.IpUtil;
 |  |  import com.zanxiang.module.web.util.IpUtil;
 | 
											
												
													
														|  |  import lombok.extern.slf4j.Slf4j;
 |  |  import lombok.extern.slf4j.Slf4j;
 | 
											
												
													
														|  |  import org.springframework.beans.factory.annotation.Autowired;
 |  |  import org.springframework.beans.factory.annotation.Autowired;
 | 
											
												
													
														|  | 
 |  | +import org.springframework.beans.factory.annotation.Value;
 | 
											
												
													
														|  |  import org.springframework.stereotype.Service;
 |  |  import org.springframework.stereotype.Service;
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  import javax.servlet.http.HttpServletRequest;
 |  |  import javax.servlet.http.HttpServletRequest;
 | 
											
										
											
												
													
														|  | @@ -52,6 +53,12 @@ public class OrderPayServiceImpl implements IOrderPayService {
 | 
											
												
													
														|  |      @Autowired
 |  |      @Autowired
 | 
											
												
													
														|  |      private IPayApplicationService payApplicationService;
 |  |      private IPayApplicationService payApplicationService;
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  | 
 |  | +    /**
 | 
											
												
													
														|  | 
 |  | +     * 服务器域名
 | 
											
												
													
														|  | 
 |  | +     */
 | 
											
												
													
														|  | 
 |  | +    @Value("${server.domain}")
 | 
											
												
													
														|  | 
 |  | +    private String serverUrl;
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  |      @Override
 |  |      @Override
 | 
											
												
													
														|  |      public PayParamVO getPayParam(String code, String orderId, HttpServletRequest request) {
 |  |      public PayParamVO getPayParam(String code, String orderId, HttpServletRequest request) {
 | 
											
												
													
														|  |          Order order = orderService.getOne(new LambdaQueryWrapper<Order>()
 |  |          Order order = orderService.getOne(new LambdaQueryWrapper<Order>()
 | 
											
										
											
												
													
														|  | @@ -154,6 +161,11 @@ public class OrderPayServiceImpl implements IOrderPayService {
 | 
											
												
													
														|  |              paramMap.put("path", payApplicationDTO.getPath());
 |  |              paramMap.put("path", payApplicationDTO.getPath());
 | 
											
												
													
														|  |              paramMap.put("orderId", product.getOrderId());
 |  |              paramMap.put("orderId", product.getOrderId());
 | 
											
												
													
														|  |              paramMap.put("amount", product.getAmount());
 |  |              paramMap.put("amount", product.getAmount());
 | 
											
												
													
														|  | 
 |  | +            if (this.serverUrl.contains("84game")) {
 | 
											
												
													
														|  | 
 |  | +                paramMap.put("serverUrl", this.serverUrl + "/sdk");
 | 
											
												
													
														|  | 
 |  | +            } else {
 | 
											
												
													
														|  | 
 |  | +                paramMap.put("serverUrl", this.serverUrl + "/api/sdk");
 | 
											
												
													
														|  | 
 |  | +            }
 | 
											
												
													
														|  |              log.error("下单参数返回, paramMap : {}", JsonUtil.toString(paramMap));
 |  |              log.error("下单参数返回, paramMap : {}", JsonUtil.toString(paramMap));
 | 
											
												
													
														|  |              return paramMap;
 |  |              return paramMap;
 | 
											
												
													
														|  |          }
 |  |          }
 |