作者 yangfu

Merge branch 'dev' of http://gitlab.fjmaimaimai.com/mmm-go/opp into dev

@@ -112,7 +112,6 @@ limit ? @@ -112,7 +112,6 @@ limit ?
112 sqlCount := fmt.Sprintf(`select count(0) from ( 112 sqlCount := fmt.Sprintf(`select count(0) from (
113 select id,user_id,create_at,source_content from chance 113 select id,user_id,create_at,source_content from chance
114 where user_id=? and company_id=? and review_status in (%v) 114 where user_id=? and company_id=? and review_status in (%v)
115 -order by create_at desc  
116 ) a left JOIN chance_data b on a.id =b.chance_id`, utils.JoinInt8s(reviewStatus, ",")) 115 ) a left JOIN chance_data b on a.id =b.chance_id`, utils.JoinInt8s(reviewStatus, ","))
117 if err = utils.ExecuteQueryOne(&total, sqlCount, uid, cid); err != nil { 116 if err = utils.ExecuteQueryOne(&total, sqlCount, uid, cid); err != nil {
118 return 117 return
@@ -522,6 +522,9 @@ type CommonListItem struct { @@ -522,6 +522,9 @@ type CommonListItem struct {
522 type ChanceItem struct { 522 type ChanceItem struct {
523 Id int64 `json:"id"` 523 Id int64 `json:"id"`
524 CreateTime int64 `json:"createTime"` 524 CreateTime int64 `json:"createTime"`
  525 + CreateTimeCopy int64 `json:"createTimeCopy"`
  526 + UpdateTime int64 `json:"updateTime"`
  527 + ApproveTime int64 `json:"approveTime"`
525 Provider *BaseUserInfo `json:"provider"` 528 Provider *BaseUserInfo `json:"provider"`
526 FormList []*Form `json:"formList" valid:"Required"` 529 FormList []*Form `json:"formList" valid:"Required"`
527 Speechs []Speech `json:"speechs"` 530 Speechs []Speech `json:"speechs"`
@@ -151,3 +151,7 @@ func logMsg(msg *models.UserMsg, name string) { @@ -151,3 +151,7 @@ func logMsg(msg *models.UserMsg, name string) {
151 log.Info(fmt.Sprintf("发送消息 消息类型:%v Receiver:%v(%v) Message:%v SourceId:%v SourceType:%v", 151 log.Info(fmt.Sprintf("发送消息 消息类型:%v Receiver:%v(%v) Message:%v SourceId:%v SourceType:%v",
152 msg.MsgType, msg.ReceiveUserId, name, msg.Message, msg.SourceId, msg.SourceType)) 152 msg.MsgType, msg.ReceiveUserId, name, msg.Message, msg.SourceId, msg.SourceType))
153 } 153 }
  154 +
  155 +func SaveApproveLog(orm orm.Ormer, code int, userId int64, param ...interface{}) (err error) {
  156 + return
  157 +}
@@ -1210,6 +1210,7 @@ func MyApproveChance(header *protocol.RequestHeader, request *protocol.MyApprove @@ -1210,6 +1210,7 @@ func MyApproveChance(header *protocol.RequestHeader, request *protocol.MyApprove
1210 item := protocol.ChanceItem{ 1210 item := protocol.ChanceItem{
1211 Id: chance.ChanceId, 1211 Id: chance.ChanceId,
1212 Provider: provider, 1212 Provider: provider,
  1213 + //CreateTime:chance.c
1213 //CreateTime: chance.CreateTime.Unix() * 1000, 1214 //CreateTime: chance.CreateTime.Unix() * 1000,
1214 } 1215 }
1215 jsonUnmarshal(chance.SourceContent, &item.FormList) 1216 jsonUnmarshal(chance.SourceContent, &item.FormList)
@@ -89,7 +89,7 @@ func UploadFile(request *protocol.FileRequest) (rsp *protocol.FileResponse, err @@ -89,7 +89,7 @@ func UploadFile(request *protocol.FileRequest) (rsp *protocol.FileResponse, err
89 log.Error(err) 89 log.Error(err)
90 return 90 return
91 } 91 }
92 - rsp.Paths = append(rsp.Paths, filepath.Join(virtualPath, filename)) 92 + rsp.Paths = append(rsp.Paths, virtualPath+"/"+filename)
93 ResizeImage(request.FileType, sourcePath, prefix, subfix, f) 93 ResizeImage(request.FileType, sourcePath, prefix, subfix, f)
94 } 94 }
95 return 95 return