1
This commit is contained in:
		| @ -194,4 +194,5 @@ type MemberWithdrawalLogConfirmReq struct { | ||||
| 	Id         int    `json:"id"` | ||||
| 	ConfirmVal int    `json:"confirmVal"` // 1:成功 2:失败 | ||||
| 	Remark     string `json:"remark"` | ||||
| 	Hash       string `json:"hash"` //交易hash | ||||
| } | ||||
|  | ||||
| @ -187,7 +187,7 @@ func (e *MemberWithdrawalLog) Confirm(req *dto.MemberWithdrawalLogConfirmReq) er | ||||
| 	err := e.Orm.Transaction(func(tx *gorm.DB) error { | ||||
| 		if err := tx.Model(&data). | ||||
| 			Where("status =?", memberwithdrawallogstatus.APPROVED). | ||||
| 			Updates(map[string]interface{}{"status": data.Status, "confirm_time": time.Now(), "remark": req.Remark}).Error; err != nil { | ||||
| 			Updates(map[string]interface{}{"status": data.Status, "confirm_time": time.Now(), "hash": req.Hash, "remark": req.Remark}).Error; err != nil { | ||||
| 			return err | ||||
| 		} | ||||
|  | ||||
|  | ||||
		Reference in New Issue
	
	Block a user