1
This commit is contained in:
@@ -83,3 +83,21 @@ func (a *Auth2Controller) GetUserPhoneByWeChat(c *gin.Context) {
|
||||
return map[string]interface{}{"phone": phone}, "", nil
|
||||
})
|
||||
}
|
||||
|
||||
// GetToken4Jxc4 获取京西菜市授权用户创建门店,和创建门店美团关联
|
||||
// @Title 获取京西菜市授权用户创建门店
|
||||
// @Description 获取京西菜市授权用户创建门店
|
||||
// @Success 200 {object} controllers.CallResult
|
||||
// @Failure 200 {object} controllers.CallResult
|
||||
// @router /getToken4Jxc4 [get]
|
||||
func (a *Auth2Controller) GetToken4Jxc4(c *gin.Context) {
|
||||
controllers.CallFunc(c, func() (retVal interface{}, errCode string, err error) {
|
||||
service := app_server.UserLogin{}
|
||||
token, err := service.GetJxc4Token()
|
||||
if err != nil {
|
||||
return nil, "", err
|
||||
}
|
||||
|
||||
return map[string]interface{}{"token": token}, "", nil
|
||||
})
|
||||
}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
package app
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"git.rosy.net.cn/jx-print/controllers"
|
||||
"git.rosy.net.cn/jx-print/model"
|
||||
printModel "git.rosy.net.cn/jx-print/model/app_model"
|
||||
@@ -176,6 +177,12 @@ func (p *Print) TestPrint(c *gin.Context) {
|
||||
controllers.BuildErrJson(c, err)
|
||||
return
|
||||
}
|
||||
|
||||
if param.OrderNo >= 999999999 {
|
||||
controllers.BuildErrJson(c, errors.New("订单编号最多65536"))
|
||||
return
|
||||
}
|
||||
|
||||
if tokenInfo = controllers.CheckToken(c); tokenInfo == nil {
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user