- remove agentId from dingapi.Sign
This commit is contained in:
@@ -32,7 +32,6 @@ func init() {
|
||||
// @Param url query string true "当前网页的URL,不包含#及其后面部分"
|
||||
// @Param nonceStr query string true "随机串,自己定义"
|
||||
// @Param timeStamp query string true "时间戳"
|
||||
// @Param agentId query string false "应用的标识"
|
||||
// @Success 200 {object} controllers.CallResult
|
||||
// @Failure 200 {object} controllers.CallResult
|
||||
// @router /Sign [get]
|
||||
@@ -48,7 +47,6 @@ func (c *DDAPIController) Sign() {
|
||||
if err == nil {
|
||||
retVal = fmt.Sprintf("%x", sha1.Sum([]byte("jsapi_ticket="+ddapi.Ticket+
|
||||
"&noncestr="+params.NonceStr+"×tamp="+params.TimeStamp+"&url="+params.Url)))
|
||||
|
||||
}
|
||||
return retVal, "", err
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user