Skip to content

Commit 6383df7

Browse files
committed
修改为联通配置,测试
1 parent 9ac8e62 commit 6383df7

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

internal/app/iptv/hwctc/authenticator.go

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -152,34 +152,29 @@ func (c *Client) validAuthenticationHWCTC(ctx context.Context, encryptToken stri
152152
// 使用3DES加密生成Authenticator
153153
crypto := iptv.NewTripleDESCrypto(c.key)
154154
authenticator, err := crypto.ECBEncrypt(input)
155+
logger.Info(authenticator)
155156
if err != nil {
156157
return nil, err
157158
}
158159

159160
// 组装请求数据
160161
data := map[string]string{
161162
"UserID": c.config.UserID,
162-
"Lang": c.config.Lang,
163+
"Lang": "0",
163164
"SupportHD": "1",
164165
"NetUserID": c.config.NetUserID,
165166
"Authenticator": strings.ToUpper(authenticator),
166167
"STBType": c.config.STBType,
167168
"STBVersion": c.config.STBVersion,
168169
"conntype": c.config.Conntype,
169170
"STBID": c.config.STBID,
170-
"templateName": c.config.TemplateName,
171+
"templateName": "default",
171172
"areaId": c.config.AreaId,
172173
"userToken": encryptToken,
173-
"userGroupId": c.config.UserGroupId,
174-
"productPackageId": c.config.ProductPackageId,
174+
"userGroupId": "",
175+
"productPackageId": "",
175176
"mac": c.config.MAC,
176-
"UserField": c.config.UserField,
177177
"SoftwareVersion": c.config.SoftwareVersion,
178-
"IsSmartStb": c.config.IsSmartStb,
179-
"desktopId": "",
180-
"stbmaker": "",
181-
"XMPPCapability": "",
182-
"ChipID": "",
183178
"VIP": c.config.Vip,
184179
}
185180
body := url.Values{}

0 commit comments

Comments
 (0)