|  |  | 
 |  |  | import cn.hutool.core.util.StrUtil; | 
 |  |  | import cn.hutool.json.JSONObject; | 
 |  |  | import cn.hutool.json.JSONUtil; | 
 |  |  | import io.swagger.annotations.Api; | 
 |  |  | import io.swagger.annotations.ApiOperation; | 
 |  |  | import lombok.RequiredArgsConstructor; | 
 |  |  | import lombok.extern.slf4j.Slf4j; | 
 |  |  | import org.springframework.beans.factory.annotation.Autowired; | 
 |  |  | import org.springframework.web.bind.annotation.*; | 
 |  |  | 
 |  |  | @Slf4j | 
 |  |  | @RestController | 
 |  |  | @RequestMapping(value = "/api/unipay") | 
 |  |  | @RequiredArgsConstructor | 
 |  |  | @Api(value = "ApiMallMemberController", tags = "支付接口类") | 
 |  |  | public class UnipayController { | 
 |  |  |  | 
 |  |  |     @Autowired | 
 |  |  | 
 |  |  |     @ApiOperation(value = "获取协议支付签约短信", notes = "获取协议支付签约短信") | 
 |  |  |     @PostMapping(value = "getAgreeMentPaySms") | 
 |  |  |     public FebsResponse getAgreeMentPaySms(@RequestBody AgreeMentPaySmsDto agreeMentPaySmsDto) { | 
 |  |  |         unipayService.getAgreeMentPaySms(agreeMentPaySmsDto); | 
 |  |  |         return new FebsResponse().success().message("申请成功"); | 
 |  |  |         String agreeMentPaySms = unipayService.getAgreeMentPaySms(agreeMentPaySmsDto); | 
 |  |  |         return new FebsResponse().success().message(agreeMentPaySms); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  | //    public static void main(String[] args) { | 
 |  |  | 
 |  |  |                     orderInfo.setPayResult("1"); | 
 |  |  |                     orderInfo.setPayTime(DateUtil.parse(pay_success_time)); | 
 |  |  |                     orderInfo.setPayTradeNo(jp_order_no); | 
 |  |  |                     orderInfo.setPayOrderNo(orderNo); | 
 |  |  |                     orderInfoMapper.updateById(orderInfo); | 
 |  |  |  | 
 |  |  |                     boolean hasTc = false; |