- refactor weixin, remove weixinsns.
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package utils
|
||||
|
||||
import (
|
||||
"encoding/base64"
|
||||
"fmt"
|
||||
"net/http"
|
||||
"net/url"
|
||||
@@ -224,3 +225,13 @@ func FilterMapNilMembers(mapData map[string]interface{}) map[string]interface{}
|
||||
}
|
||||
return mapData
|
||||
}
|
||||
|
||||
func Base64DecodeMultiString(strs ...string) (decodedData [][]byte, err error) {
|
||||
decodedData = make([][]byte, len(strs))
|
||||
for k, v := range strs {
|
||||
if decodedData[k], err = base64.StdEncoding.DecodeString(v); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
}
|
||||
return decodedData, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user