作者 yangfu

配置修改

... ... @@ -23,7 +23,7 @@ yunpian_app_key ="0bf6fb10a11a68a95dee80901eb545b5"
#存储 http://ability.fjmaimaimai.com:8080/
source_host ="http://mmm-opp-prd.fjmaimaimai.com/"
source_virtual_path=file/opp
source_path ="${aliyun_file_access||/var/www/opp/file}
source_path ="${aliyun_file_access||/var/www/opp/file/opportunity}
#网易云信 IM
net_im_base_url ="https://api.netease.im/nimserver"
... ...
... ... @@ -158,13 +158,13 @@ from audit_flow_process where uid=? and review_status in (%v) `, utils.JoinInt8
func GetChanceMyApproveChanceEnable(uid, cid int64, reviewStatus []int8, lastId int64, pageSize int, v interface{}) (total int, err error) {
sql := fmt.Sprintf(`select a.*,b.images,b.speechs,b.videos from (
select a.*,b.user_id,b.source_content,b.enable_status,b.review_status,b.create_at,b.update_at,b.approve_time chance_approve_time,b.status from (
select id,approve_time,approve_data,uid,chance_id,approve_message,update_at process_create_time
select a.*,b.user_id,b.source_content,b.enable_status,b.review_status,b.create_at,b.update_at,b.approve_time chance_approve_time,b.status,b.update_at process_create_time from (
select id,approve_time,approve_data,uid,chance_id,approve_message
from audit_flow_process where uid=? and review_status in (%v) and (?=0 or id<?) and enable_status =1
)a left outer join chance b on a.chance_id = b.id
)a left outer join chance_data b on a.chance_id =b.chance_id
order by process_create_time desc
LIMIT ?`, utils.JoinInt8s(reviewStatus, ",")) //
LIMIT ?`, utils.JoinInt8s(reviewStatus, ",")) //,update_at process_create_time
sqlCount := fmt.Sprintf(`select count(0)
from audit_flow_process where uid=? and review_status in (%v) and enable_status =1`, utils.JoinInt8s(reviewStatus, ",")) //and enable_status =1
... ...
... ... @@ -5,11 +5,17 @@ import (
"github.com/astaxie/beego"
)
//短信类型
//redis 键值
const (
SmsCode = "sms_code"
SmsLoginCode = "sms_login_code"
SmsChangeMobile = "sms_change_mobile"
H5AnnouncementSubmit = "h5_announcement_submit"
ChanceApprove = "chance_approve"
ChanceUpdate = "chance_update"
ChanceDelete = "chance_delete"
HashUuid = "hash_uuid" //接口uuid
)
type SmsInfo struct {
... ...