|
@@ -1105,7 +1105,7 @@ func (c *PatientApiController) CreateGroupAdvice() {
|
1105
|
1105
|
return
|
1106
|
1106
|
}
|
1107
|
1107
|
adviceType := int64(dataBody["advice_type"].(float64))
|
1108
|
|
- if adviceType != 1 && adviceType != 2 && adviceType != 3 {
|
|
1108
|
+ if adviceType != 1 && adviceType != 2 && adviceType != 3 && adviceType != 4 {
|
1109
|
1109
|
utils.ErrorLog("advice_type != 1&&2")
|
1110
|
1110
|
c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeParamWrong)
|
1111
|
1111
|
return
|
|
@@ -2885,7 +2885,7 @@ func adviceFormData(advice *models.DoctorAdvice, data []byte, action string) (co
|
2885
|
2885
|
return
|
2886
|
2886
|
}
|
2887
|
2887
|
adviceType := int64(dataBody["advice_type"].(float64))
|
2888
|
|
- if adviceType != 1 && adviceType != 2 && adviceType != 3 {
|
|
2888
|
+ if adviceType != 1 && adviceType != 2 && adviceType != 3 && adviceType != 4 {
|
2889
|
2889
|
utils.ErrorLog("advice_type != 1&&2")
|
2890
|
2890
|
code = enums.ErrorCodeParamWrong
|
2891
|
2891
|
return
|