修改初始化

pull/79/head^2
zhangchenhao 2025-05-15 10:51:05 +08:00
parent b65c09d84a
commit 282224df28
3 changed files with 3 additions and 2 deletions

View File

@ -79,7 +79,7 @@ func RequestBt(data *url.Values, method, providerID, requestUrl string) (map[str
var res map[string]interface{} var res map[string]interface{}
err = json.Unmarshal(body, &res) err = json.Unmarshal(body, &res)
if err != nil { if err != nil {
return nil, fmt.Errorf("返回值解析失败: %v", err) return nil, fmt.Errorf("返回值解析失败: %v%s", err, string(body))
} }
if res["status"] != nil && !res["status"].(bool) { if res["status"] != nil && !res["status"].(bool) {

View File

@ -107,7 +107,6 @@ func deploy(params map[string]any) (any, error) {
case string: case string:
skip, _ = strconv.Atoi(v) skip, _ = strconv.Atoi(v)
} }
fmt.Println("xxxxxxxxxxxxxxxx", skip)
if skip == 1 { if skip == 1 {
if len(deployData) > 0 { if len(deployData) > 0 {
beSha256, ok := deployData[0]["cert_hash"].(string) beSha256, ok := deployData[0]["cert_hash"].(string)

View File

@ -41,6 +41,8 @@ func init() {
defer db.Close() defer db.Close()
// 创建表 // 创建表
_, err = db.Exec(` _, err = db.Exec(`
PRAGMA journal_mode=WAL;
create table IF NOT EXISTS _accounts create table IF NOT EXISTS _accounts
( (
id integer not null id integer not null