|
@@ -28,6 +28,7 @@ func DisWordRecode(order_id, sale_money int, product_name, disWord string) {
|
|
|
parentTypeInt, _ := strconv.Atoi(fmt.Sprint((*parentList)[0]["type"]))
|
|
|
parentType = parentTypeInt
|
|
|
}
|
|
|
+ fmt.Println("用户类型"+fmt.Sprint(parentType))
|
|
|
if (parentType == 2) {
|
|
|
return
|
|
|
}
|
|
@@ -35,6 +36,7 @@ func DisWordRecode(order_id, sale_money int, product_name, disWord string) {
|
|
|
var c_rate float64 = 0
|
|
|
if p_data, ok := util.MQFW.Find("dis_product", nil, `{"l_createdate":1}`, nil, false, -1, -1); ok && p_data != nil {
|
|
|
for _, v := range *p_data {
|
|
|
+ fmt.Println(v)
|
|
|
if product_name == qutil.ObjToString(v["s_name"]) {
|
|
|
c_rate = qutil.Float64All(v["f_rate"])
|
|
|
}
|