一波更新
This commit is contained in:
@@ -3,11 +3,11 @@ package httpServer
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"goutil/logUtilPlus"
|
||||
"goutil/typeUtil"
|
||||
"goutil/zlibUtil"
|
||||
"io/ioutil"
|
||||
"net/http"
|
||||
"goutil/logUtilPlus"
|
||||
"goutil/typeUtil"
|
||||
"goutil/zlibUtil"
|
||||
)
|
||||
|
||||
// ApiContext
|
||||
@@ -184,6 +184,7 @@ func NewApiContext(_request *http.Request, _responseWriter http.ResponseWriter,
|
||||
// 读取数据
|
||||
_, errMsg := context.readContent(isZlib)
|
||||
if errMsg != nil {
|
||||
|
||||
return nil, errMsg
|
||||
}
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
package httpServer
|
||||
|
||||
import (
|
||||
"common/webServer"
|
||||
"net/http"
|
||||
|
||||
"common/resultStatus"
|
||||
"common/webServer"
|
||||
)
|
||||
|
||||
// 处理函数
|
||||
@@ -59,7 +59,7 @@ func (this *ApiHandler) FuncParamNames() []string {
|
||||
// @receiver this: this
|
||||
// @r:
|
||||
// return:
|
||||
// @resultStatus.ResultStatus: 状态码数据
|
||||
// @resultstatus.ResultStatus: 状态码数据
|
||||
func (this *ApiHandler) CheckParam(r *http.Request) resultStatus.ResultStatus {
|
||||
for _, name := range this.funcParamNames {
|
||||
if r.Form[name] == nil || len(r.Form[name]) == 0 {
|
||||
|
||||
@@ -7,6 +7,7 @@ import (
|
||||
|
||||
"goutil/logUtil"
|
||||
"goutil/logUtilPlus"
|
||||
|
||||
// "log"
|
||||
"net/http/pprof"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user