huangjiajun 3 недель назад
Родитель
Сommit
e2747c769d
2 измененных файлов: 2 добавлений и 1 удалений
  1. +1
    -1
      db/offical/model/sms_record.go
  2. +1
    -0
      sms/api.go

+ 1
- 1
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)"`


+ 1
- 0
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';`


Загрузка…
Отмена
Сохранить