|
|
|
@ -459,14 +459,33 @@ class SafeController extends BaseController{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function safeDocument() {
|
|
|
|
|
$realname = $_REQUEST['realname'];
|
|
|
|
|
$phone = $_REQUEST['phone'];
|
|
|
|
|
$email = $_REQUEST['email'];
|
|
|
|
|
$address = $_REQUEST['address'];
|
|
|
|
|
if (empty($realname)) {
|
|
|
|
|
$realname = '您未填写真实姓名';
|
|
|
|
|
}
|
|
|
|
|
if (empty($email)) {
|
|
|
|
|
$email = '您未填写联系邮箱';
|
|
|
|
|
}
|
|
|
|
|
if (empty($address)) {
|
|
|
|
|
$address = '您未填写注册地址';
|
|
|
|
|
}
|
|
|
|
|
if (empty($phone)) {
|
|
|
|
|
$phone = '您未填写联系号码';
|
|
|
|
|
}
|
|
|
|
|
$time = time();
|
|
|
|
|
$loginPromote = $this->getLoginPromote();
|
|
|
|
|
$sn = date('Ymd') . '-' . strtoupper(substr(md5($loginPromote['id']), 8, 16));
|
|
|
|
|
|
|
|
|
|
$endTime = date('Y-m-d',strtotime('+1 year'));
|
|
|
|
|
$this->assign('time',date('Y-m-d',$time));
|
|
|
|
|
$this->assign('endTime',$endTime);
|
|
|
|
|
$this->assign('sn',$sn);
|
|
|
|
|
$this->assign('realname',$realname);
|
|
|
|
|
$this->assign('email',$email);
|
|
|
|
|
$this->assign('address',$address);
|
|
|
|
|
$this->assign('phone',$phone);
|
|
|
|
|
$this->display();
|
|
|
|
|
}
|
|
|
|
|
}
|