Commit 23842b1d authored by kongfm's avatar kongfm

更新tzs

parent bea0ba05
......@@ -146,7 +146,7 @@ public class WechatController extends BaseController {
@TycloudOperation(ApiLevel = UserType.ANONYMOUS , needAuth = false)
@GetMapping(value = "/getSignature")
@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>();
try {
......@@ -164,7 +164,7 @@ public class WechatController extends BaseController {
Collections.sort(params);
String tokenStr = StringUtils.join(params,"&");
tokenStr = DigestUtils.sha1Hex(tokenStr);
return tokenStr;
return ResponseHelper.buildResponse(tokenStr);
} catch (Exception e) {
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