|
|
@ -1,6 +1,8 @@ |
|
|
|
package com.ccsens.defaultwbs.api; |
|
|
|
|
|
|
|
import com.alibaba.fastjson.JSONObject; |
|
|
|
import com.ccsens.util.JsonResponse; |
|
|
|
import com.ccsens.wechatutil.payutil.WxPayDirectUtils; |
|
|
|
import io.swagger.annotations.Api; |
|
|
|
import io.swagger.annotations.ApiImplicitParams; |
|
|
|
import io.swagger.annotations.ApiOperation; |
|
|
@ -26,4 +28,16 @@ public class DebugController { |
|
|
|
return JsonResponse.newInstance().ok("测试"); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation(value = "/测试",notes = "") |
|
|
|
@ApiImplicitParams({ |
|
|
|
}) |
|
|
|
@RequestMapping(value="wx",method = RequestMethod.GET,produces = {"application/json;charset=UTF-8"}) |
|
|
|
public JsonResponse wxdebug(HttpServletRequest request) throws Exception { |
|
|
|
JSONObject transactions = WxPayDirectUtils.transactions("wxa26bb3e3f1d2d998", "1217752501201407033233368018", |
|
|
|
"企鹅仔", "https://www.baidu.com", 1); |
|
|
|
|
|
|
|
|
|
|
|
return JsonResponse.newInstance().ok(transactions); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|