| | |
| | | import com.stylefeng.guns.modular.system.service.*; |
| | | import com.stylefeng.guns.modular.system.util.ALiSendSms; |
| | | import com.stylefeng.guns.modular.system.util.ResultUtil; |
| | | import com.stylefeng.guns.modular.system.util.qiniuyun.QNYAuth; |
| | | import com.stylefeng.guns.modular.system.warpper.*; |
| | | import com.stylefeng.guns.modular.taxi.model.OrderTaxi; |
| | | import com.stylefeng.guns.modular.taxi.service.IOrderTaxiService; |
| | |
| | | return ResultUtil.runErr(); |
| | | } |
| | | } |
| | | |
| | | |
| | | @ResponseBody |
| | | @PostMapping("/base/driver/getQnyToken") |
| | | @ApiOperation(value = "获取七牛云token", tags = {"司机端-个人中心"}, notes = "") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(value = "上传key", name = "key", required = true, dataType = "string"), |
| | | }) |
| | | public ResultUtil getQnyToken(String key){ |
| | | try { |
| | | String s = QNYAuth.create("6DqM0CEdAVON3mL3C6E23Vuj--635Q1hdjOwnpXw", "q35tZkQjvBCRkDsfWksY3PCr3wqUuJlodE7EF5qg") |
| | | .uploadToken("rbkj-zycx", key); |
| | | return ResultUtil.success(s); |
| | | }catch (Exception e){ |
| | | e.printStackTrace(); |
| | | return ResultUtil.runErr(); |
| | | } |
| | | } |
| | | } |