|
|
@ -345,7 +345,7 @@ func AddUserScoreLog(dbname, UserId, Score, Before, After, Source, SourceId, Ord |
|
|
|
* @2021/09/30 |
|
|
|
* @bin |
|
|
|
*/ |
|
|
|
func AddUserUpgrade(dbname, userId, upgrade string, url ...string) (int64, error) { |
|
|
|
func AddUserUpgrade(dbname, userId, upgrade, memo string, url ...string) (int64, error) { |
|
|
|
if dbname == "" || userId == "" || upgrade == "" { |
|
|
|
return 0, errors.New("参数错误") |
|
|
|
} |
|
|
@ -360,6 +360,7 @@ func AddUserUpgrade(dbname, userId, upgrade string, url ...string) (int64, error |
|
|
|
data.Dbname = dbname |
|
|
|
data.UserId = userId |
|
|
|
data.Value = upgrade |
|
|
|
data.Memo = memo |
|
|
|
|
|
|
|
req, err := SetReqData(data) |
|
|
|
if err != nil { |
|
|
@ -520,7 +521,7 @@ func AddUserUpgradeLog(dbname, UserId, Upgrade, Before, After, Source, Memo stri |
|
|
|
* @2021/09/30 |
|
|
|
* @bin |
|
|
|
*/ |
|
|
|
func AddUserRedEnvelope(dbname, userId, money string, url ...string) (int64, error) { |
|
|
|
func AddUserRedEnvelope(dbname, userId, money, memo string, url ...string) (int64, error) { |
|
|
|
if dbname == "" || userId == "" || money == "" { |
|
|
|
return 0, errors.New("参数错误") |
|
|
|
} |
|
|
@ -535,6 +536,7 @@ func AddUserRedEnvelope(dbname, userId, money string, url ...string) (int64, err |
|
|
|
data.Dbname = dbname |
|
|
|
data.UserId = userId |
|
|
|
data.Value = money |
|
|
|
data.Memo = memo |
|
|
|
|
|
|
|
req, err := SetReqData(data) |
|
|
|
if err != nil { |
|
|
|