You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
466 B
22 lines
466 B
package http |
|
|
|
import ( |
|
"strconv" |
|
|
|
"go-common/library/ecode" |
|
"go-common/library/log" |
|
bm "go-common/library/net/http/blademaster" |
|
) |
|
|
|
func audit(c *bm.Context) { |
|
params := c.Request.Form |
|
buildStr := params.Get("build") |
|
mobiApp := params.Get("mobi_app") |
|
build, err := strconv.Atoi(buildStr) |
|
if err != nil { |
|
log.Error("stronv.ParseInt(%s) error(%v)", buildStr, err) |
|
c.JSON(nil, ecode.RequestErr) |
|
return |
|
} |
|
c.JSON(nil, auditSvc.Audit(c, mobiApp, build)) |
|
}
|
|
|