1234567891011121314151617181920212223242526272829 |
- package tencentim_service
-
- import (
- "SCRM/utils/tencentsig"
- )
-
- //正式
- const (
- ThisAccType = 29296
- ThisSDKAppId = "1400103109"
- ThisIdentifier = "kuyiyun" // admin
- ThisPriKey = `-----BEGIN PRIVATE KEY-----
- MIGHAgEAMBMGByqGSM49AgEGCCqGSM49AwEHBG0wawIBAQQgpM/saduI49IF+DeL
- jEjyU1ryKIEKTyRLekw4w4qeC7ShRANCAAQHinjtGLt6WF2wOfEKA1xomfcS19/i
- ZyymFHJlKR49WASx/9XEbm2/TNZUn/qbe5jc4HhujQR7IUVKVFtEU6Oa
- -----END PRIVATE KEY-----`
- ThisPubKey = `-----BEGIN PUBLIC KEY-----
- MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEB4p47Ri7elhdsDnxCgNcaJn3Etff
- 4mcsphRyZSkePVgEsf/VxG5tv0zWVJ/6m3uY3OB4bo0EeyFFSlRbRFOjmg==
- -----END PUBLIC KEY-----`
- )
-
- func CreateUserSig(Identifier, AppId3rd string) (userSig string, err error) {
- conf := tencentsig.NewConf(ThisSDKAppId, Identifier, AppId3rd).WithExpire(86400)
- userSig, err = conf.GenUserSig(ThisPriKey)
-
- return
- }
|