| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- <?php
- /**
- * Created by PhpStorm.
- * User: shenyang
- * Date: 2018/6/22
- * Time: 上午11:22
- */
- namespace app\backend\modules\remittanceAudit\controllers;
- use app\common\components\BaseController;
- use app\common\exceptions\AppException;
- use app\common\modules\payType\remittance\models\process\RemittanceAuditProcess;
- class DetailController extends BaseController
- {
- protected $process;
- /**
- * DetailController constructor.
- * @throws AppException
- */
- public function preAction()
- {
- parent::preAction();
- $processId = request()->input('id');
- $this->process = RemittanceAuditProcess::uniacid()->detail()->find($processId);
- if(!isset($this->process)){
- if(!isset($this->process)){
- throw new AppException("未找到id为{$processId}的审核进程记录");
- }
- }
- $this->process['remittanceRecord']['report_url'] = yz_tomedia($this->process['remittanceRecord']['report_url']);
- }
- /**
- * @return string
- * @throws \Throwable
- */
- public function index()
- {
- return view('remittanceAudit.detail', [
- 'remittanceAudit' => json_encode($this->process)
- ])->render();
- }
- }
|