新增获取账号地址的方法
This commit is contained in:
@@ -11,7 +11,7 @@ import (
|
||||
func ExportTwitterAccounts() ([]string, error) {
|
||||
accountService := InitTwitterAccountService()
|
||||
accounts := accountService.GetAll(&models.TwitterAccount{
|
||||
Type: "get",
|
||||
Type: "get_address",
|
||||
})
|
||||
|
||||
// 分类
|
||||
@@ -37,7 +37,7 @@ func ExportTwitterAccounts() ([]string, error) {
|
||||
continue
|
||||
}
|
||||
file := excelize.NewFile()
|
||||
titles := []string{"编号", "用户id", "用户名", "邮箱", "密码", "邮箱密码", "生日", "Token", "二步验证码", "Cookies", "类型", "状态", "登录状态", "代理", "浏览器ID", "浏览器地址", "注册时间", "注册地区", "注册IP", "更新时间", "创建时间"}
|
||||
titles := []string{"编号", "用户id", "用户名", "邮箱", "密码", "邮箱密码", "生日", "Token", "二步验证码", "Cookies", "类型", "状态", "登录状态", "代理", "浏览器ID", "浏览器地址", "注册时间", "注册地区", "注册IP", "地址", "更新时间", "创建时间"}
|
||||
for i, t := range titles {
|
||||
cell, _ := excelize.CoordinatesToCellName(i+1, 1)
|
||||
file.SetCellValue("Sheet1", cell, t)
|
||||
@@ -63,6 +63,7 @@ func ExportTwitterAccounts() ([]string, error) {
|
||||
acc.RegisterDate,
|
||||
acc.RegisterAddress,
|
||||
acc.RegisterIp,
|
||||
acc.Address,
|
||||
acc.UpdateTime,
|
||||
acc.CreateTime,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user