- jdapi.ProcessQuestionPic

This commit is contained in:
gazebo
2019-05-11 13:13:23 +08:00
parent 68a0c24a6a
commit e363031430

View File

@@ -432,8 +432,8 @@ func (a *API) AfsSubmit(OrderID, pin, questionTypeCode, questionDesc, questionPi
} }
func ProcessQuestionPic(questionPic string) (outQuestionPic string) { func ProcessQuestionPic(questionPic string) (outQuestionPic string) {
picList := strings.Split(questionPic, ",") if questionPic != "" {
if len(picList) > 0 { picList := strings.Split(questionPic, ",")
picList2 := make([]string, len(picList)) picList2 := make([]string, len(picList))
for index, pic := range picList { for index, pic := range picList {
picList2[index] = AfsPicPrefix + "/" + pic picList2[index] = AfsPicPrefix + "/" + pic