- jdapi.ProcessQuestionPic
This commit is contained in:
@@ -2,10 +2,15 @@ package jdapi
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"strings"
|
||||
|
||||
"git.rosy.net.cn/baseapi/utils"
|
||||
)
|
||||
|
||||
const (
|
||||
AfsPicPrefix = "http://img10.360buyimg.com/o2o"
|
||||
)
|
||||
|
||||
const (
|
||||
DeliveryStatusWait4Grap = "10"
|
||||
DeliveryStatusAccepted = "20"
|
||||
@@ -425,3 +430,15 @@ func (a *API) AfsSubmit(OrderID, pin, questionTypeCode, questionDesc, questionPi
|
||||
}
|
||||
return afsOrderID, err
|
||||
}
|
||||
|
||||
func ProcessQuestionPic(questionPic string) (outQuestionPic string) {
|
||||
picList := strings.Split(questionPic, ",")
|
||||
if len(picList) > 0 {
|
||||
picList2 := make([]string, len(picList))
|
||||
for index, pic := range picList {
|
||||
picList2[index] = AfsPicPrefix + "/" + pic
|
||||
}
|
||||
outQuestionPic = strings.Join(picList2, ",")
|
||||
}
|
||||
return outQuestionPic
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user