|
@@ -61,7 +61,7 @@ func CardPackSend(engine *xorm.Engine, args map[string]interface{}) (string, err |
|
|
Ext: zhios_third_party_utils.SerializeStr(ext), |
|
|
Ext: zhios_third_party_utils.SerializeStr(ext), |
|
|
} |
|
|
} |
|
|
engine.InsertOne(&record) |
|
|
engine.InsertOne(&record) |
|
|
sql := `UPDATE sms_num_list set num=num-%d WHERE uid=%s ;` |
|
|
|
|
|
|
|
|
sql := `UPDATE card_pack_num_list set num=num-%d WHERE uid=%s ;` |
|
|
sql = fmt.Sprintf(sql, 1, args["uid"]) |
|
|
sql = fmt.Sprintf(sql, 1, args["uid"]) |
|
|
fmt.Println(sql) |
|
|
fmt.Println(sql) |
|
|
nativeString, err := db.QueryNativeString(engine, sql) |
|
|
nativeString, err := db.QueryNativeString(engine, sql) |
|
|