瀏覽代碼

体积小

XMLWAN 3 年之前
父節點
當前提交
7d8dddfa10
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      controllers/xcx_mobile_api_controller.go/xcx_api_controller.go

+ 2 - 2
controllers/xcx_mobile_api_controller.go/xcx_api_controller.go 查看文件

@@ -227,7 +227,7 @@ func (this *XcxApiController) GetDataInfo() {
227 227
 }
228 228
 
229 229
 func (this *XcxApiController) GetScheduleInfo() {
230
-	//patient_id, _ := this.GetInt64("patient_id")
230
+	patient_id, _ := this.GetInt64("patient_id")
231 231
 	thisWeekMonday := service.GetFirstDateOfWeek()
232 232
 	weekDayWeek := service.GetWeekDayOfWeek()
233 233
 	TimeMonday, _ := time.Parse("2006-01-02", thisWeekMonday)
@@ -248,7 +248,7 @@ func (this *XcxApiController) GetScheduleInfo() {
248 248
 
249 249
 	fmt.Println(startTime.Unix(), endTime.Unix())
250 250
 
251
-	schedule, err := service.GetScheduleInfo(1630252800, 1631980800, 2448)
251
+	schedule, err := service.GetScheduleInfo(1630252800, 1631980800, patient_id)
252 252
 	if err != nil {
253 253
 		this.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeSystemError)
254 254
 		return