|
|
@ -1,6 +1,7 @@ |
|
|
<?php |
|
|
<?php |
|
|
|
|
|
|
|
|
namespace App\AdminAgent\Forms; |
|
|
namespace App\AdminAgent\Forms; |
|
|
|
|
|
use App\Common\UserStatus; |
|
|
use App\Models\Agent; |
|
|
use App\Models\Agent; |
|
|
use Dcat\Admin\Admin; |
|
|
use Dcat\Admin\Admin; |
|
|
use Dcat\Admin\Widgets\Form; |
|
|
use Dcat\Admin\Widgets\Form; |
|
|
@ -28,6 +29,7 @@ class AgentInfo extends Form |
|
|
$model->logo = $input['logo']; |
|
|
$model->logo = $input['logo']; |
|
|
$model->avatar = $input['avatar']; |
|
|
$model->avatar = $input['avatar']; |
|
|
$model->license_pic = $input['license_pic']; |
|
|
$model->license_pic = $input['license_pic']; |
|
|
|
|
|
$model->status = UserStatus::UNAUDITED; |
|
|
|
|
|
|
|
|
$model->agentInfo->about = $input['agentInfo']['about']; |
|
|
$model->agentInfo->about = $input['agentInfo']['about']; |
|
|
$model->agentInfo->reg_protocol = $input['agentInfo']['reg_protocol']; |
|
|
$model->agentInfo->reg_protocol = $input['agentInfo']['reg_protocol']; |
|
|
@ -57,6 +59,8 @@ class AgentInfo extends Form |
|
|
$this->editor('agentInfo.about')->required(); |
|
|
$this->editor('agentInfo.about')->required(); |
|
|
$this->editor('agentInfo.reg_protocol')->required(); |
|
|
$this->editor('agentInfo.reg_protocol')->required(); |
|
|
$this->editor('agentInfo.buy_protocol')->required(); |
|
|
$this->editor('agentInfo.buy_protocol')->required(); |
|
|
|
|
|
|
|
|
|
|
|
$this->confirm('编辑确认', '编辑内容需要管理员重新审核,确定要提交吗?'); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
|