|
|
@@ -6,6 +6,7 @@ import (
|
|
|
"mtp2_if/logger"
|
|
|
"mtp2_if/models"
|
|
|
"net/http"
|
|
|
+ "strconv"
|
|
|
|
|
|
"github.com/gin-gonic/gin"
|
|
|
)
|
|
|
@@ -26,7 +27,7 @@ func Signin(c *gin.Context) {
|
|
|
|
|
|
// 判断Token与UserID是否对应
|
|
|
userID, exists := c.Get("requserid")
|
|
|
- if !exists || userID != m.USERID {
|
|
|
+ if !exists || userID != strconv.Itoa(int(m.USERID)) {
|
|
|
a.Response(http.StatusBadRequest, e.ERROR_OPERATION_FAILED, nil)
|
|
|
return
|
|
|
}
|