作者 yangfu

配置修改

@@ -23,7 +23,7 @@ yunpian_app_key ="0bf6fb10a11a68a95dee80901eb545b5" @@ -23,7 +23,7 @@ yunpian_app_key ="0bf6fb10a11a68a95dee80901eb545b5"
23 #存储 http://ability.fjmaimaimai.com:8080/ 23 #存储 http://ability.fjmaimaimai.com:8080/
24 source_host ="http://mmm-opp-prd.fjmaimaimai.com/" 24 source_host ="http://mmm-opp-prd.fjmaimaimai.com/"
25 source_virtual_path=file/opp 25 source_virtual_path=file/opp
26 -source_path ="${aliyun_file_access||/var/www/opp/file} 26 +source_path ="${aliyun_file_access||/var/www/opp/file/opportunity}
27 27
28 #网易云信 IM 28 #网易云信 IM
29 net_im_base_url ="https://api.netease.im/nimserver" 29 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 @@ -158,13 +158,13 @@ from audit_flow_process where uid=? and review_status in (%v) `, utils.JoinInt8
158 158
159 func GetChanceMyApproveChanceEnable(uid, cid int64, reviewStatus []int8, lastId int64, pageSize int, v interface{}) (total int, err error) { 159 func GetChanceMyApproveChanceEnable(uid, cid int64, reviewStatus []int8, lastId int64, pageSize int, v interface{}) (total int, err error) {
160 sql := fmt.Sprintf(`select a.*,b.images,b.speechs,b.videos from ( 160 sql := fmt.Sprintf(`select a.*,b.images,b.speechs,b.videos from (
161 -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 (  
162 -select id,approve_time,approve_data,uid,chance_id,approve_message,update_at process_create_time 161 +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 (
  162 +select id,approve_time,approve_data,uid,chance_id,approve_message
163 from audit_flow_process where uid=? and review_status in (%v) and (?=0 or id<?) and enable_status =1 163 from audit_flow_process where uid=? and review_status in (%v) and (?=0 or id<?) and enable_status =1
164 )a left outer join chance b on a.chance_id = b.id 164 )a left outer join chance b on a.chance_id = b.id
165 )a left outer join chance_data b on a.chance_id =b.chance_id 165 )a left outer join chance_data b on a.chance_id =b.chance_id
166 order by process_create_time desc 166 order by process_create_time desc
167 -LIMIT ?`, utils.JoinInt8s(reviewStatus, ",")) // 167 +LIMIT ?`, utils.JoinInt8s(reviewStatus, ",")) //,update_at process_create_time
168 168
169 sqlCount := fmt.Sprintf(`select count(0) 169 sqlCount := fmt.Sprintf(`select count(0)
170 from audit_flow_process where uid=? and review_status in (%v) and enable_status =1`, utils.JoinInt8s(reviewStatus, ",")) //and enable_status =1 170 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 ( @@ -5,11 +5,17 @@ import (
5 "github.com/astaxie/beego" 5 "github.com/astaxie/beego"
6 ) 6 )
7 7
8 -//短信类型 8 +//redis 键值
9 const ( 9 const (
10 SmsCode = "sms_code" 10 SmsCode = "sms_code"
11 SmsLoginCode = "sms_login_code" 11 SmsLoginCode = "sms_login_code"
12 SmsChangeMobile = "sms_change_mobile" 12 SmsChangeMobile = "sms_change_mobile"
  13 +
  14 + H5AnnouncementSubmit = "h5_announcement_submit"
  15 + ChanceApprove = "chance_approve"
  16 + ChanceUpdate = "chance_update"
  17 + ChanceDelete = "chance_delete"
  18 + HashUuid = "hash_uuid" //接口uuid
13 ) 19 )
14 20
15 type SmsInfo struct { 21 type SmsInfo struct {