wangchuanjin 4 年之前
父節點
當前提交
e1957e2150
共有 2 個文件被更改,包括 1 次插入11 次删除
  1. 1 0
      src/jfw/modules/subscribepay/src/service/dataexportPack.go
  2. 0 11
      src/jfw/public/public.go

+ 1 - 0
src/jfw/modules/subscribepay/src/service/dataexportPack.go

@@ -90,6 +90,7 @@ func (this *DataExportPack) CreateOrder() {
 			"service_status": 0,
 			"user_nickname":  nickname,
 			"user_openid":    openId,
+			"user_phone":     this.GetString("phone"),
 			"order_code":     orderCode,
 			"product_type":   "数据流量包",
 			"create_time":    qutil.FormatDate(&now, qutil.Date_Full_Layout),

+ 0 - 11
src/jfw/public/public.go

@@ -274,14 +274,3 @@ func isEmail(value string) bool {
 	var emailPattern = regexp.MustCompile("^([a-zA-Z0-9_\\-\\.]+)@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.)|(([a-zA-Z0-9\\-]+\\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\\]?)$")
 	return emailPattern.MatchString(value)
 }
-
-func GetDataPkgPhone(userId string) string {
-	lastPhone := ""
-	userData, _ := MQFW.FindById("user", userId, `{"s_phone":1,"s_m_phone":1}`)
-	if userData != nil && len(*userData) > 0 {
-		if lastPhone == "" {
-			lastPhone, _ = util.If((*userData)["s_phone"] != nil, (*userData)["s_phone"], (*userData)["s_m_phone"]).(string)
-		}
-	}
-	return lastPhone
-}