From e2747c769d8a19fa8fcecb25a63e109e915e77c9 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Sat, 27 Apr 2024 17:01:20 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BD=AC=E9=93=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- db/offical/model/sms_record.go | 2 +- sms/api.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/db/offical/model/sms_record.go b/db/offical/model/sms_record.go index e3ffd8b..e275bc3 100644 --- a/db/offical/model/sms_record.go +++ b/db/offical/model/sms_record.go @@ -8,7 +8,7 @@ type SmsRecord struct { Id int `json:"id" xorm:"not null pk autoincr INT(11)"` OrdId string `json:"ord_id" xorm:"not null default '' comment('订单id') VARCHAR(100)"` Uid int `json:"uid" xorm:"not null default 0 comment('主用户id') INT(11)"` - Phone int64 `json:"phone" xorm:"not null default 0 comment('主账号-手机号码') BIGINT(13)"` + Phone string `json:"phone" xorm:"not null default 0 comment('主账号-手机号码') VARCHAR(255)"` Nickname string `json:"nickname" xorm:"not null default '' comment('主账号-昵称') VARCHAR(255)"` Amount string `json:"amount" xorm:"not null default '0' comment('充值金额') VARCHAR(255)"` CostPrice string `json:"cost_price" xorm:"not null default '0' comment('付费价格') VARCHAR(255)"` diff --git a/sms/api.go b/sms/api.go index 3b67260..b1e0486 100644 --- a/sms/api.go +++ b/sms/api.go @@ -123,6 +123,7 @@ func SmsSend(engine *xorm.Engine, args map[string]interface{}) error { Fee: "", Ext: zhios_third_party_utils.SerializeStr(ext), SmsType: args["sms_type"].(string), + Phone: args["mobile"].(string), } engine.InsertOne(&record) sql := `UPDATE sms_num_list set num=num-%d WHERE uid=%s and type='%s';`