正在显示
3 个修改的文件
包含
9 行增加
和
9 行删除
| @@ -69,7 +69,7 @@ class UpdateProgress extends Command | @@ -69,7 +69,7 @@ class UpdateProgress extends Command | ||
| 69 | if(!empty($info)){ | 69 | if(!empty($info)){ |
| 70 | $info = (array)$info; | 70 | $info = (array)$info; |
| 71 | //超时时间 | 71 | //超时时间 |
| 72 | - $time = date("Y-m-d H:i:s",strtotime($info['created_at']) + $info['total_num'] * 3600); | 72 | + $time = date("Y-m-d H:i:s",strtotime($info['created_at']) + $info['total_num'] * 60); |
| 73 | if($time > date("Y-m-d H:i:s")){ | 73 | if($time > date("Y-m-d H:i:s")){ |
| 74 | DB::connection('custom_mysql')->table('gl_update_progress')->where('id',$info['id'])->update(['current_num'=>$info['total_num']]); | 74 | DB::connection('custom_mysql')->table('gl_update_progress')->where('id',$info['id'])->update(['current_num'=>$info['total_num']]); |
| 75 | //获取当前项目的用户 | 75 | //获取当前项目的用户 |
| @@ -159,8 +159,8 @@ class ProofreadingController extends BaseController | @@ -159,8 +159,8 @@ class ProofreadingController extends BaseController | ||
| 159 | 'updated_at'=>date('Y-m-d H:i:s') | 159 | 'updated_at'=>date('Y-m-d H:i:s') |
| 160 | ]; | 160 | ]; |
| 161 | $proofreadingModel = new Proofreading(); | 161 | $proofreadingModel = new Proofreading(); |
| 162 | - DB::beginTransaction(); | ||
| 163 | - try { | 162 | +// DB::beginTransaction(); |
| 163 | +// try { | ||
| 164 | $proofreadingModel->del(['language_id'=>$this->param['language_id'],'url'=>$this->param['url'],'type'=>2]); | 164 | $proofreadingModel->del(['language_id'=>$this->param['language_id'],'url'=>$this->param['url'],'type'=>2]); |
| 165 | //删除成功后,重新添加 | 165 | //删除成功后,重新添加 |
| 166 | $save_data = []; | 166 | $save_data = []; |
| @@ -170,11 +170,11 @@ class ProofreadingController extends BaseController | @@ -170,11 +170,11 @@ class ProofreadingController extends BaseController | ||
| 170 | $save_data[] = $param; | 170 | $save_data[] = $param; |
| 171 | } | 171 | } |
| 172 | $proofreadingModel->insert($save_data); | 172 | $proofreadingModel->insert($save_data); |
| 173 | - DB::commit(); | ||
| 174 | - }catch (\Exception $e){ | ||
| 175 | - DB::rollBack(); | ||
| 176 | - $this->fail('系统错误请联系管理员'); | ||
| 177 | - } | 173 | +// DB::commit(); |
| 174 | +// }catch (\Exception $e){ | ||
| 175 | +// DB::rollBack(); | ||
| 176 | +// $this->fail('系统错误请联系管理员'); | ||
| 177 | +// } | ||
| 178 | $this->response('success'); | 178 | $this->response('success'); |
| 179 | } | 179 | } |
| 180 | 180 |
| @@ -134,7 +134,7 @@ class FileController | @@ -134,7 +134,7 @@ class FileController | ||
| 134 | } | 134 | } |
| 135 | } | 135 | } |
| 136 | $this->saveMysql($fileModel,$files->getSize(),$files->getClientOriginalExtension(),$fileName,$hash,$this->upload_location,$files->getMimeType(),$name); | 136 | $this->saveMysql($fileModel,$files->getSize(),$files->getClientOriginalExtension(),$fileName,$hash,$this->upload_location,$files->getMimeType(),$name); |
| 137 | - return $this->response('资源',Code::SUCCESS,$this->responseData($this->path.'/'.$fileName, $name)); | 137 | + $this->response('资源',Code::SUCCESS,$this->responseData($this->path.'/'.$fileName, $name)); |
| 138 | } | 138 | } |
| 139 | 139 | ||
| 140 | /** | 140 | /** |
-
请 注册 或 登录 后发表评论