[_] fmt
This commit is contained in:
parent
9649a1d234
commit
5edc9e809f
1 changed files with 2 additions and 2 deletions
|
|
@ -35,14 +35,14 @@ func init() {
|
|||
func processUpload(process *gou.Process) interface{} {
|
||||
process.ValidateArgNums(1)
|
||||
|
||||
var tmpfile xun.UploadFile
|
||||
var tmpfile xun.UploadFile
|
||||
data, err := jsoniter.Marshal(process.Args[0])
|
||||
if err != nil {
|
||||
exception.New("上传文件参数错误 %s %v", 400, err.Error(), process.Args[0]).Throw()
|
||||
}
|
||||
|
||||
err = jsoniter.Unmarshal(data, &tmpfile)
|
||||
if err != nil {
|
||||
if err != nil {
|
||||
exception.New("上传文件参数错误 %s %v", 400, err.Error(), process.Args[0]).Throw()
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue