|
|
|
@ -9,6 +9,7 @@ import com.example.demo.mapper.Temporary.RedMapper; |
|
|
|
import com.example.demo.service.Temporary.RedService; |
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.beans.factory.annotation.Value; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
import org.springframework.transaction.annotation.Propagation; |
|
|
|
import org.springframework.transaction.annotation.Transactional; |
|
|
|
@ -34,7 +35,8 @@ import java.time.format.DateTimeFormatter; |
|
|
|
@Slf4j |
|
|
|
@Service |
|
|
|
public class RedServiceImpl implements RedService { |
|
|
|
private static final String BASE_URLProd = "http://39.101.133.168:8828/scms"; |
|
|
|
@Value("${red.url}") |
|
|
|
private String BASE_URLProd ; |
|
|
|
private static final String BASE_URLDev = "http://gf977328.natappfree.cc"; |
|
|
|
private static final String PATH = "/api/coupon/IssueRechargeRedPacket"; |
|
|
|
|
|
|
|
|