Merge remote-tracking branch 'origin/master' into akun
正在显示
5 个修改的文件
包含
6 行增加
和
4 行删除
| @@ -105,7 +105,7 @@ class ReplaceHtml extends Command | @@ -105,7 +105,7 @@ class ReplaceHtml extends Command | ||
| 105 | 'source_id'=>$v['id'], | 105 | 'source_id'=>$v['id'], |
| 106 | 'is_rollback'=>$info['is_rollback'], | 106 | 'is_rollback'=>$info['is_rollback'], |
| 107 | 'template_id'=>$info['template_id'], | 107 | 'template_id'=>$info['template_id'], |
| 108 | - 'name'=>$v['name'], | 108 | + 'source_name'=>$v['name'], |
| 109 | 'created_at'=>date('Y-m-d H:i:s'), | 109 | 'created_at'=>date('Y-m-d H:i:s'), |
| 110 | 'updated_at'=>date('Y-m-d H:i:s') | 110 | 'updated_at'=>date('Y-m-d H:i:s') |
| 111 | ]; | 111 | ]; |
| @@ -26,7 +26,8 @@ class Common | @@ -26,7 +26,8 @@ class Common | ||
| 26 | $data = [ | 26 | $data = [ |
| 27 | 'operator_id'=>$param['operator_id'], | 27 | 'operator_id'=>$param['operator_id'], |
| 28 | 'model'=>$param['model'], | 28 | 'model'=>$param['model'], |
| 29 | - 'remark'=>$param['remark'] | 29 | + 'remark'=>$param['remark'], |
| 30 | + 'project_id'=>$param['project_id'] | ||
| 30 | ]; | 31 | ]; |
| 31 | $model = new UserLogModel(); | 32 | $model = new UserLogModel(); |
| 32 | return $model->add($data); | 33 | return $model->add($data); |
| @@ -159,7 +159,7 @@ class BaseController extends Controller | @@ -159,7 +159,7 @@ class BaseController extends Controller | ||
| 159 | $log = config('logging.operator_log'); | 159 | $log = config('logging.operator_log'); |
| 160 | if(isset($log) && $log['log'] == true){ | 160 | if(isset($log) && $log['log'] == true){ |
| 161 | if(empty($log['action']) || (strpos($log['action'],$this->request->route()->getName()) === false)){ | 161 | if(empty($log['action']) || (strpos($log['action'],$this->request->route()->getName()) === false)){ |
| 162 | - Common::set_user_log(['model'=>$this->request->route()->getName(),'remark'=>'请求的参数:param = '.json_encode($this->param),'operator_id'=>$this->uid,'type'=>isset($this->user['manager_id']) ? 1 : 0]); | 162 | + Common::set_user_log(['project_id'=>$this->user['project_id'] ?? 0,'model'=>$this->request->route()->getName(),'remark'=>'请求的参数:param = '.json_encode($this->param),'operator_id'=>$this->uid,'type'=>isset($this->user['manager_id']) ? 1 : 0]); |
| 163 | } | 163 | } |
| 164 | } | 164 | } |
| 165 | return true; | 165 | return true; |
| @@ -388,8 +388,8 @@ class FileController | @@ -388,8 +388,8 @@ class FileController | ||
| 388 | if(isset($this->cache['project_id']) && !empty($this->cache['project_id'])){ | 388 | if(isset($this->cache['project_id']) && !empty($this->cache['project_id'])){ |
| 389 | $this->map['project_id'] = $this->cache['project_id']; | 389 | $this->map['project_id'] = $this->cache['project_id']; |
| 390 | } | 390 | } |
| 391 | - $this->map['refer'] = 1; | ||
| 392 | $fileModel = new File(); | 391 | $fileModel = new File(); |
| 392 | + $this->map['type'] = 'mp4'; | ||
| 393 | $lists = $fileModel->list($this->map,'id',['id','hash','type','path','created_at','name']); | 393 | $lists = $fileModel->list($this->map,'id',['id','hash','type','path','created_at','name']); |
| 394 | foreach ($lists as $k => $v){ | 394 | foreach ($lists as $k => $v){ |
| 395 | $v['file_link'] = getFileUrl($v['path'],$this->cache['storage_type'] ?? 0,$this->cache['project_location'] ?? 0,$this->cache['file_cdn'] ?? 0); | 395 | $v['file_link'] = getFileUrl($v['path'],$this->cache['storage_type'] ?? 0,$this->cache['project_location'] ?? 0,$this->cache['file_cdn'] ?? 0); |
| @@ -177,6 +177,7 @@ class UserLoginLogic | @@ -177,6 +177,7 @@ class UserLoginLogic | ||
| 177 | $info['project_location'] = $project['project_location']; | 177 | $info['project_location'] = $project['project_location']; |
| 178 | $info['is_update_language'] = $project['is_update_language']; | 178 | $info['is_update_language'] = $project['is_update_language']; |
| 179 | $info['configuration'] = $project['deploy_build']['configuration']; | 179 | $info['configuration'] = $project['deploy_build']['configuration']; |
| 180 | + $info['file_cdn'] = $project['deploy_build']['file_cdn']; | ||
| 180 | $info['project_type'] = $project['type']; | 181 | $info['project_type'] = $project['type']; |
| 181 | $info['service_duration'] = $project['deploy_build']['service_duration']; | 182 | $info['service_duration'] = $project['deploy_build']['service_duration']; |
| 182 | $info['remain_day'] = $project['remain_day']; | 183 | $info['remain_day'] = $project['remain_day']; |
-
请 注册 或 登录 后发表评论