|
@@ -3,8 +3,10 @@ package front
|
|
|
import (
|
|
|
"fmt"
|
|
|
"github.com/go-xweb/xweb"
|
|
|
+ "log"
|
|
|
"qfw/coreutil"
|
|
|
"qfw/util/redis"
|
|
|
+ "strconv"
|
|
|
)
|
|
|
|
|
|
type Weixinshare struct {
|
|
@@ -16,11 +18,15 @@ type Weixinshare struct {
|
|
|
|
|
|
func (e *Weixinshare) Weixinshare(pid string) error {
|
|
|
var pngdata = []byte{}
|
|
|
+ pid = se.DecodeString(pid)
|
|
|
+ log.Println("weixinshare:::::", pid)
|
|
|
if ret, _ := redis.GetBytes("sso", fmt.Sprintf("p_share_%s", pid)); ret != nil {
|
|
|
pngdata = *ret
|
|
|
} else {
|
|
|
- id := coreutil.GetShareId(coreutil.TYPE_INVITE)
|
|
|
- coreutil.GetShareQR(id)
|
|
|
+ log.Println("weixinshare222222:::::", pid)
|
|
|
+ //id := coreutil.GetShareId(coreutil.TYPE_INVITE)
|
|
|
+ id, _ := strconv.Atoi(pid)
|
|
|
+ coreutil.GetShareQR(uint32(id))
|
|
|
tmp, _ := redis.GetBytes("sso", fmt.Sprintf("p_share_%d", id))
|
|
|
pngdata = *tmp
|
|
|
}
|