Browse Source

转链

master
huangjiajun 7 months ago
parent
commit
e2747c769d
2 changed files with 2 additions and 1 deletions
  1. +1
    -1
      db/offical/model/sms_record.go
  2. +1
    -0
      sms/api.go

+ 1
- 1
db/offical/model/sms_record.go View File

@@ -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)"`


+ 1
- 0
sms/api.go View File

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


Loading…
Cancel
Save