mirror of https://github.com/allinssl/allinssl
修改初始化
parent
b65c09d84a
commit
282224df28
|
@ -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) {
|
||||||
|
|
|
@ -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)
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue