Commit 23842b1d authored by kongfm's avatar kongfm

更新tzs

parent bea0ba05
...@@ -146,7 +146,7 @@ public class WechatController extends BaseController { ...@@ -146,7 +146,7 @@ public class WechatController extends BaseController {
@TycloudOperation(ApiLevel = UserType.ANONYMOUS , needAuth = false) @TycloudOperation(ApiLevel = UserType.ANONYMOUS , needAuth = false)
@GetMapping(value = "/getSignature") @GetMapping(value = "/getSignature")
@ApiOperation(httpMethod = "GET", value = "获取微信签名", notes = "获取微信签名") @ApiOperation(httpMethod = "GET", value = "获取微信签名", notes = "获取微信签名")
public String getSignature(@RequestParam String timestamp,@RequestParam String noncestr,@RequestParam String url) { public ResponseModel<String> getSignature(@RequestParam String timestamp,@RequestParam String noncestr,@RequestParam String url) {
List<String> params = new ArrayList<String>(); List<String> params = new ArrayList<String>();
try { try {
...@@ -164,7 +164,7 @@ public class WechatController extends BaseController { ...@@ -164,7 +164,7 @@ public class WechatController extends BaseController {
Collections.sort(params); Collections.sort(params);
String tokenStr = StringUtils.join(params,"&"); String tokenStr = StringUtils.join(params,"&");
tokenStr = DigestUtils.sha1Hex(tokenStr); tokenStr = DigestUtils.sha1Hex(tokenStr);
return tokenStr; return ResponseHelper.buildResponse(tokenStr);
} catch (Exception e) { } catch (Exception e) {
throw new BadRequest(e.getMessage()); throw new BadRequest(e.getMessage());
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment