Skip to content

Commit 8a68099

Browse files
committed
device info
1 parent e142683 commit 8a68099

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,15 +83,15 @@ TODO
8383

8484
如果已经挂了很久,非常确定不会遇到验证码的时候,可以把参数的`port`设为0,表示使用随机端口。
8585

86-
参数
86+
### 参数
8787
```shell
8888
Usage of GMC:
8989
-uin int
9090
机器人QQ
9191
-pass string
9292
机器人密码
9393
-port int
94-
http管理端口, 0 表示随机 (默认 9000)
94+
http管理端口(默认 9000), 0表示随机, 如果不需要处理验证码, 可以随便填
9595
-sms bool
9696
登录优先使用短信验证
9797
-ws_url string

service/bot/bot.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ func InitDevice(uin int64) {
4949
client.SystemDeviceInfo.WifiSSID = []byte("TP-LINK-" + utils.RandomStringRange(6, "ABCDEF1234567890"))
5050
client.SystemDeviceInfo.IpAddress = []byte{192, 168, 1, byte(100 + uin%100)}
5151
client.SystemDeviceInfo.Protocol = client.IPad
52+
client.SystemDeviceInfo.VendorOSName = []byte("gmc")
5253

5354
if util.PathExists(devicePath) {
5455
log.Infof("使用 %s 内的设备信息覆盖设备信息", devicePath)

0 commit comments

Comments
 (0)