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';`