|
|
@@ -1913,15 +1913,15 @@ func (c *CourseController) GetTMSCoursePlan() {
|
|
|
}
|
|
|
var req Request
|
|
|
|
|
|
- if CurrentLoginMode == 0 {
|
|
|
- c.Ctx.Output.SetStatus(500)
|
|
|
- c.Data["json"] = map[string]interface{}{
|
|
|
- "code": 500,
|
|
|
- "msg": "本地模式不支持该功能 ",
|
|
|
- }
|
|
|
- c.ServeJSON()
|
|
|
- return
|
|
|
- }
|
|
|
+ // if CurrentLoginMode == 1 {
|
|
|
+ // c.Ctx.Output.SetStatus(500)
|
|
|
+ // c.Data["json"] = map[string]interface{}{
|
|
|
+ // "code": 500,
|
|
|
+ // "msg": "本地模式不支持该功能 ",
|
|
|
+ // }
|
|
|
+ // c.ServeJSON()
|
|
|
+ // return
|
|
|
+ // }
|
|
|
|
|
|
// 从app.conf中读取SYSDEVICEID作为SBID的值
|
|
|
sbid, err := beego.AppConfig.String("SYSDEVICEID")
|
|
|
@@ -2057,15 +2057,15 @@ func (c *CourseController) GetTMSCoursePlanStudent() {
|
|
|
PXSSID string `json:"PXSSID"`
|
|
|
}
|
|
|
|
|
|
- if CurrentLoginMode == 0 {
|
|
|
- c.Ctx.Output.SetStatus(500)
|
|
|
- c.Data["json"] = map[string]interface{}{
|
|
|
- "code": 500,
|
|
|
- "msg": "本地模式不支持该功能 ",
|
|
|
- }
|
|
|
- c.ServeJSON()
|
|
|
- return
|
|
|
- }
|
|
|
+ // if CurrentLoginMode == 1 {
|
|
|
+ // c.Ctx.Output.SetStatus(500)
|
|
|
+ // c.Data["json"] = map[string]interface{}{
|
|
|
+ // "code": 500,
|
|
|
+ // "msg": "本地模式不支持该功能 ",
|
|
|
+ // }
|
|
|
+ // c.ServeJSON()
|
|
|
+ // return
|
|
|
+ // }
|
|
|
|
|
|
if err := json.Unmarshal(c.Ctx.Input.RequestBody, &req); err != nil {
|
|
|
c.Ctx.Output.SetStatus(400)
|