测试美团

This commit is contained in:
苏尹岚
2020-06-17 17:29:18 +08:00
parent c952496572
commit 692c11d519
4 changed files with 5 additions and 3 deletions

View File

@@ -918,7 +918,7 @@ func PKCS5UnPadding(origData []byte) []byte {
}
//合成水印图
func MixMatermarkImg(imgWatermark, img string, exPrefixBegin, exPrefixEnd *time.Time) (imgMix string) {
func MixWatermarkImg(imgWatermark, img string, exPrefixBegin, exPrefixEnd *time.Time) (imgMix string) {
if exPrefixBegin != nil && exPrefixEnd != nil {
if utils.Time2Date(time.Now().Add(6*time.Hour)).Sub(*exPrefixBegin) >= 0 && utils.Time2Date(time.Now()).Sub(*exPrefixEnd) <= 0 {
baseURL := base64.URLEncoding.EncodeToString([]byte(imgWatermark))