黄梓健
5 years ago
7 changed files with 8 additions and 111 deletions
-
9controllers/client/shake_red_envelope.go
-
9controllers/pc/activity.go
-
2go.mod
-
2go.sum
-
1models/activity.go
-
27models/arch.go
-
69utils/define/config.go
@ -1,27 +0,0 @@ |
|||
package models |
|||
|
|||
import ( |
|||
"github.com/ouxuanserver/osmanthuswine/src/core" |
|||
"time" |
|||
) |
|||
|
|||
const ArchTableName = TableNamePrefix + "arch" |
|||
|
|||
type Arch struct { |
|||
Id int `json:"id"` |
|||
CustomerId int `json:"customer_id"` |
|||
ActivityId int `json:"activity_id"` |
|||
Date string `json:"date"` |
|||
Name string `json:"name"` |
|||
IsDelete int `json:"is_delete"` |
|||
CreatedAt time.Time `json:"created_at"` |
|||
UpdatedAt time.Time `json:"updated_at"` |
|||
} |
|||
|
|||
func (t *Arch) TableName() string { |
|||
return ArchTableName |
|||
} |
|||
|
|||
func (t *Arch) Count(activityId interface{}) (int64, error) { |
|||
return core.GetXormAuto().Where("is_delete=0 and activity_id=?", activityId).Get(t) |
|||
} |
@ -1,69 +0,0 @@ |
|||
package define |
|||
|
|||
var IsDebugging = true |
|||
|
|||
func SetDebug(modes ...bool) { |
|||
if len(modes) > 0 { |
|||
IsDebugging = modes[0] |
|||
} else { |
|||
IsDebugging = false |
|||
} |
|||
if IsDebugging { |
|||
//RoomPrefix = "test_"
|
|||
HOST = "https://hdzj.utools.club" |
|||
H5Host = "http://ouxuanhudongtest.t.3pr.com.cn/web" |
|||
SendUrl = "https://hdzjws.utools.club/PcClient/Ws/MessageCtl/Receive" |
|||
} |
|||
} |
|||
|
|||
var ( |
|||
SendUrl = "https://api.ouxuanhudong.com:20182/PcClient/Connect/MessageCtl/Receive" |
|||
RoomPrefix = "" |
|||
HOST = "https://api.ouxuanhudong.com" |
|||
H5Host = "https://h5.ouxuanhudong.com/web" |
|||
) |
|||
|
|||
const ( |
|||
H5Index = "index.html" |
|||
H5SignIn = "SignIn.html" |
|||
H5ShakeRb = "shakeRb.html" |
|||
H5TugOfWar = "tugOfWar.html" |
|||
H5UpperWall = "UpperWall.html" |
|||
H5Barrage = "barrage.html" |
|||
H5Order = "order.html" |
|||
H5Reward = "reward.html" |
|||
H5BScreen = "bScreen.html" |
|||
H5Auction = "auction.html" |
|||
H5Vote = "vote.html" |
|||
H5Calorie = "calorie.html" |
|||
) |
|||
|
|||
// 固定长度
|
|||
var DefaultOrderNo = 10000000000 |
|||
|
|||
// 微信常量
|
|||
const ( |
|||
// 欧轩互动 -> 普通商户
|
|||
ApiKey = `2c82c64ceec6ba89ffc9f593c671a12f` |
|||
WxAppId = `wx7b0bcf476552c5e9` |
|||
Secret = `f6aabdd40ea25272f4442603a7dc8028` |
|||
AppId = `wx7b0bcf476552c5e9` |
|||
MchId = `1394404502` |
|||
SubMchId = `` |
|||
|
|||
// 欧轩 -> 服务商
|
|||
//ApiKey = `6e281c8b5430c674034594cab789334F`
|
|||
//AppId = `wx662a1633304bfd42`
|
|||
//WxAppId = `wx662a1633304bfd42`
|
|||
//Secret = `7e4ecfe06ad1e075c210059d5b0162a3`
|
|||
//MchId = `1441266702`
|
|||
//SubMchId = `1394404502`
|
|||
//SubMchId = `1594049151`
|
|||
// 认证服务号:欧轩(用于申请微信服务商)
|
|||
// AppID:wx662a1633304bfd42
|
|||
// 密钥:7e4ecfe06ad1e075c210059d5b0162a3
|
|||
|
|||
WxHost = `https://api.mch.weixin.qq.com` |
|||
WxBack = `https://api2.mch.weixin.qq.com` |
|||
ClientIp = `123.207.246.51` |
|||
) |
Write
Preview
Loading…
Cancel
Save
Reference in new issue