fix(third_party): 修正飞鱼V2卡片发送接口域名更新
- 将飞鱼V2卡片发送请求的origin和post URL从apify.fkpay.online切换到ccfy.cardpay.fyi - 移除请求头中无用的referer字段 - 在otelTrace中添加"SubmitPool"追踪事件名称以支持新流程追踪
This commit is contained in:
@@ -19,6 +19,7 @@ var mustSampled = []string{
|
||||
"PayNotify",
|
||||
"HandleSendCardTask",
|
||||
"SubmitOrder",
|
||||
"SubmitPool",
|
||||
}
|
||||
|
||||
// SamplingPriority 强制采样
|
||||
|
||||
@@ -104,9 +104,8 @@ func (s *SendCardTaskTypeFlyFishV2) HandleSendCardTask(ctx context.Context, orde
|
||||
webClient := resty.New().
|
||||
SetHeader("accept", "application/json, text/javascript, */*; q=0.01").
|
||||
SetHeader("content-type", "application/x-www-form-urlencoded; charset=UTF-8").
|
||||
SetHeader("origin", "https://apify.fkpay.online").
|
||||
SetHeader("origin", "https://ccfy.cardpay.fyi").
|
||||
SetHeader("user-agent", useragent.GetUserAgentByPlatform(useragent.PlatformPhone)).
|
||||
SetHeader("referer", "https://apify.fkpay.online/show.html?orderId=FY17568845864231914279").
|
||||
SetTimeout(time.Second * 30).OnBeforeRequest(func(client *resty.Client, request *resty.Request) error {
|
||||
proxy, err2 := utils.GetProxy(ctx, utils.GenerateId(), "SendCardTaskTypeFlyFishV2_cardTask")
|
||||
otelTrace.Logger.WithContext(ctx).Info("获取代理", zap.String("proxy", proxy))
|
||||
@@ -148,7 +147,7 @@ func (s *SendCardTaskTypeFlyFishV2) HandleSendCardTask(ctx context.Context, orde
|
||||
}
|
||||
|
||||
span.AddEvent("start submit data")
|
||||
resp, err := webClient.R().SetContext(ctx).SetFormData(formData).Post("https://apify.fkpay.online/submitcard")
|
||||
resp, err := webClient.R().SetContext(ctx).SetFormData(formData).Post("https://ccfy.cardpay.fyi/submitcard")
|
||||
span.AddEvent("end submit data")
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user