forked from ProjectWIND/ProjectWIND
重新划定分区
This commit is contained in:
parent
86ea3fc544
commit
933ebdfc46
4
.gitignore
vendored
4
.gitignore
vendored
@ -3,4 +3,6 @@
|
||||
/ProjectWIND
|
||||
/data
|
||||
**/.DS_Store
|
||||
/app_demo/
|
||||
/app_demo/
|
||||
.idea/
|
||||
.vscode/
|
@ -359,7 +359,11 @@ func (a *apiInfo) SetGroupAddRequest(flag string, subType string, approve bool,
|
||||
return
|
||||
}
|
||||
|
||||
// 2.有响应API,使用http协议处理
|
||||
// 2.有响应API,需添加echo字段
|
||||
|
||||
func (a *apiInfo) GetLoginInfo(flag string, approve bool) {
|
||||
|
||||
}
|
||||
|
||||
var AppApi apiInfo
|
||||
|
||||
|
@ -115,6 +115,26 @@ func processMessage(messageType int, message []byte) {
|
||||
}
|
||||
default:
|
||||
{
|
||||
messageMap := make(map[string]interface{})
|
||||
err := json.Unmarshal(message, &messageMap)
|
||||
if err != nil {
|
||||
LOG.ERROR("Unmarshal error when handling api response message: %v", err)
|
||||
return
|
||||
}
|
||||
if messageMap["status"] != "ok" {
|
||||
LOG.ERROR("API response error: %v", messageMap["status"])
|
||||
return
|
||||
}
|
||||
if messageMap["echo"] == "" {
|
||||
LOG.WARN("Unknown API response: %v", messageMap["echo"])
|
||||
return
|
||||
}
|
||||
apiResp := make(map[string]interface{})
|
||||
apiResp["uuid"] = messageMap["echo"]
|
||||
ApiChan := make(chan map[string]interface{})
|
||||
go func(apiResp map[string]interface{}) {
|
||||
ApiChan <- apiResp
|
||||
}(apiResp)
|
||||
// 此处为api请求响应数据,通过channel返回给调用者
|
||||
return
|
||||
}
|
||||
|
25
doc/index.html
Normal file
25
doc/index.html
Normal file
@ -0,0 +1,25 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="keywords" content="wind,bot,dice,风铃,骰子,骰娘,wind官网">
|
||||
<title>WIND</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>WIND</h1>
|
||||
<div>WIND is not<br> Dice</div>
|
||||
<hr>
|
||||
<div>Hello World!</div>
|
||||
<dl>
|
||||
<dt>简单</dt>
|
||||
<dd>开箱即用,web界面,简单易懂</dd>
|
||||
<dt>快捷</dt>
|
||||
<dd>app一键安装,一键启动,一键更新</dd>
|
||||
<dt>方便</dt>
|
||||
<dd>开发者友好,代码开源,可定制化</dd>
|
||||
<dt>小巧</dt>
|
||||
<dd>体积小,启动快,占用资源少</dd>
|
||||
</dl>
|
||||
<span>点击<a href="https://github.com/Sheyiyuan/ProjectWIND" target="_blank">这里</a>关注我们</span>
|
||||
</body>
|
||||
</html>
|
Loading…
x
Reference in New Issue
Block a user