|
@@ -40,8 +40,8 @@ func ActivityNsqPublish(productType string, userId string, userPhone string, ord
|
|
|
positionId_, err := strconv.ParseInt(userId, 10, 64)
|
|
|
if err == nil && positionId_ > 0 {
|
|
|
positionId = positionId_
|
|
|
- log.Println("抽奖order_code ==", orderCode, positionId)
|
|
|
- positionData, _ := g.DB("base").GetOne(context.Background(), "SELECT id FROM base_position WHERE id = ?", userId)
|
|
|
+ positionData, err := g.DB("base").GetOne(context.Background(), "SELECT user_id FROM base_position WHERE id = ?", userId)
|
|
|
+ log.Println("抽奖order_code ==", orderCode, positionId, err)
|
|
|
if !positionData.IsEmpty() {
|
|
|
baseUserId := gconv.Int64(positionData.Map()["user_id"])
|
|
|
userRs, b := jyutil.MG.DB().FindOne("user", map[string]interface{}{
|