Browse Source

排队叫号

张保健 4 years ago
parent
commit
2d619e12f0
2 changed files with 16 additions and 0 deletions
  1. 2 0
      conf/app.conf
  2. 14 0
      controllers/mobile_api_controllers/check_weight_api_controller.go

+ 2 - 0
conf/app.conf View File

47
 mobile_token_expiration_second = 86400
47
 mobile_token_expiration_second = 86400
48
 httpdomain = https://api.xt.kuyicloud.com
48
 httpdomain = https://api.xt.kuyicloud.com
49
 sso_domain = https://sso.kuyicloud.com
49
 sso_domain = https://sso.kuyicloud.com
50
+call_domain = https://hf.sgjyun.com
50
 front_end_domain = "https://xt.kuyicloud.com/#"
51
 front_end_domain = "https://xt.kuyicloud.com/#"
51
 
52
 
52
 readmysqlhost = shengws1.mysql.rds.aliyuncs.com
53
 readmysqlhost = shengws1.mysql.rds.aliyuncs.com
143
 mobile_token_expiration_second = 3600
144
 mobile_token_expiration_second = 3600
144
 httpdomain = http://new_mobile.xt.api.sgjyun.com
145
 httpdomain = http://new_mobile.xt.api.sgjyun.com
145
 sso_domain = https://testsso.sgjyun.com
146
 sso_domain = https://testsso.sgjyun.com
147
+call_domain = http://hf.szjkhd.com
146
 front_end_domain = "http://xt.test.sgjyun.com/#"
148
 front_end_domain = "http://xt.test.sgjyun.com/#"
147
 
149
 
148
 readmysqlhost = rm-wz9rg531npf61q03tro.mysql.rds.aliyuncs.com
150
 readmysqlhost = rm-wz9rg531npf61q03tro.mysql.rds.aliyuncs.com

+ 14 - 0
controllers/mobile_api_controllers/check_weight_api_controller.go View File

4
 	"XT_New/enums"
4
 	"XT_New/enums"
5
 	"XT_New/models"
5
 	"XT_New/models"
6
 	"XT_New/service"
6
 	"XT_New/service"
7
+	"github.com/astaxie/beego"
8
+	"net/http"
9
+	"net/url"
10
+	"strconv"
7
 	_ "XT_New/utils"
11
 	_ "XT_New/utils"
8
 	_ "encoding/json"
12
 	_ "encoding/json"
9
 	"fmt"
13
 	"fmt"
790
 				sc["data"] = daySchedule
794
 				sc["data"] = daySchedule
791
 			}
795
 			}
792
 		}
796
 		}
797
+
798
+		// 排队叫号的签到
799
+		ssoDomain := beego.AppConfig.String("call_domain")
800
+		api := ssoDomain + "/index/patientsign/"+strconv.FormatInt(adminUserInfo.Org.Id, 10)+"/"+strconv.FormatInt(id, 10)
801
+		values := make(url.Values)
802
+
803
+		http.PostForm(api, values)
804
+
793
 	} else {
805
 	} else {
794
 		nextSchedule, _ := service.GetNextSchedule(adminUserInfo.Org.Id, endTime, id)
806
 		nextSchedule, _ := service.GetNextSchedule(adminUserInfo.Org.Id, endTime, id)
795
 		if len(nextSchedule) <= 0 {
807
 		if len(nextSchedule) <= 0 {
952
 		}
964
 		}
953
 	}
965
 	}
954
 
966
 
967
+
968
+
955
 	c.ServeSuccessJSON(map[string]interface{}{
969
 	c.ServeSuccessJSON(map[string]interface{}{
956
 		"dialysistype":     dialysistype,
970
 		"dialysistype":     dialysistype,
957
 		"patient":          dialysisinfo,
971
 		"patient":          dialysisinfo,