Merge branch 'main' of http://1.117.67.95:3000/team/tyapi-server
This commit is contained in:
@@ -139,7 +139,7 @@ func (s *ShumaiService) CallAPIForm(ctx context.Context, apiPath string, reqForm
|
||||
|
||||
startTime := time.Now()
|
||||
timestamp := strconv.FormatInt(time.Now().UnixMilli(), 10)
|
||||
|
||||
|
||||
// 根据参数选择使用的 AppID 和 AppSecret,而不是依赖全局状态
|
||||
var appID, appSecret string
|
||||
if useGov && s.config.AppID2 != "" {
|
||||
@@ -149,7 +149,7 @@ func (s *ShumaiService) CallAPIForm(ctx context.Context, apiPath string, reqForm
|
||||
appID = s.config.AppID
|
||||
appSecret = s.config.AppSecret
|
||||
}
|
||||
|
||||
|
||||
// 使用指定的 AppID 生成请求ID
|
||||
requestID := s.generateRequestIDWithAppID(appID)
|
||||
sign := GenerateSignForm(appID, timestamp, appSecret)
|
||||
|
||||
Reference in New Issue
Block a user