|
@@ -83,35 +83,30 @@ class Login
|
|
|
$field = input('field/s');
|
|
|
$sinpage = SinpageModel::where(1)->find();
|
|
|
$data = [];
|
|
|
- if ($field == "aboutus") {
|
|
|
+ if ($field == "woman_aboutus") {
|
|
|
$data = [
|
|
|
'pagetil' => '关于我们',
|
|
|
- 'pagecon' => $sinpage->aboutus,
|
|
|
+ 'pagecon' => $sinpage->woman_aboutus,
|
|
|
];
|
|
|
- } elseif ($field == "privacy") {
|
|
|
+ } elseif ($field == "woman_privacy") {
|
|
|
$data = [
|
|
|
'pagetil' => '隐私政策',
|
|
|
- 'pagecon' => $sinpage->privacy,
|
|
|
+ 'pagecon' => $sinpage->woman_privacy,
|
|
|
];
|
|
|
- } elseif ($field == "service") {
|
|
|
+ } elseif ($field == "woman_service") {
|
|
|
$data = [
|
|
|
'pagetil' => '用户协议',
|
|
|
- 'pagecon' => $sinpage->service,
|
|
|
+ 'pagecon' => $sinpage->woman_service,
|
|
|
];
|
|
|
- } elseif ($field == "contact") {
|
|
|
+ } elseif ($field == "woman_contact") {
|
|
|
$data = [
|
|
|
'pagetil' => '联系客服',
|
|
|
- 'pagecon' => $sinpage->contact,
|
|
|
- ];
|
|
|
- } elseif ($field == "wxmp") {
|
|
|
- $data = [
|
|
|
- 'pagetil' => '嵌入公众号说明',
|
|
|
- 'pagecon' => $sinpage->wxmp,
|
|
|
+ 'pagecon' => $sinpage->woman_contact,
|
|
|
];
|
|
|
} else {
|
|
|
$data = [
|
|
|
'pagetil' => '关于我们',
|
|
|
- 'pagecon' => $sinpage->aboutus,
|
|
|
+ 'pagecon' => $sinpage->woman_aboutus,
|
|
|
];
|
|
|
}
|
|
|
|
|
@@ -187,15 +182,15 @@ class Login
|
|
|
'nickname' => $nickname,
|
|
|
'avatar' => $headimgurl ?? '',
|
|
|
'mobile' => $mobile,
|
|
|
- 'groupsid' => 7,
|
|
|
- 'education' => 7,
|
|
|
+ 'groupsid' => 7,
|
|
|
+ 'education' => 7,
|
|
|
'emp_time' => [],
|
|
|
'user_tags' => [],
|
|
|
'com_cate' => [],
|
|
|
'work_place' => [],
|
|
|
'createtime' => time(),
|
|
|
]);
|
|
|
- $auth = UserAuthsModel::create([
|
|
|
+ $auth = UserAuthsModel::create([
|
|
|
'userid' => $user['id'],
|
|
|
'identitytype' => 'weixin',
|
|
|
'identifier' => $open_id,
|
|
@@ -259,7 +254,7 @@ class Login
|
|
|
$user_id = get_user_id();
|
|
|
$worker = WorkerModel::field(['id', 'realname', 'mobile', 'address', 'title', 'details', 'picone', 'remark', 'status'])->where('userid', $user_id)->find();
|
|
|
if (empty($worker)) {
|
|
|
- $worker = json_encode(['id' => 0, 'realname' => '', 'mobile' => '', 'address' => '', 'title' => '', 'details' => '', 'picone' => '', 'remark' => '']);
|
|
|
+ $worker = json_encode(['id' => 0, 'wtype' => '', 'realname' => '', 'mobile' => '', 'address' => '', 'title' => '', 'details' => '', 'picone' => '', 'remark' => '']);
|
|
|
} else {
|
|
|
if ($worker->status == 1) {
|
|
|
return $this->_jump('等待管理员审核', url('/login/setType') . '?type=1');
|
|
@@ -283,12 +278,14 @@ class Login
|
|
|
} else {
|
|
|
$user_id = get_user_id();
|
|
|
$data['userid'] = $user_id;
|
|
|
- $data['wtype'] = 2;
|
|
|
$data['ftitle'] = $data['title'];
|
|
|
$data['province'] = '福建省';
|
|
|
$data['city'] = '泉州市';
|
|
|
$data['district'] = '晋江市';
|
|
|
$data['createitme'] = time();
|
|
|
+ if ($data['wtype'] == 1) {
|
|
|
+ $data['title'] = $data['ftitle'] = $data['realname'];
|
|
|
+ }
|
|
|
WorkerModel::create($data);
|
|
|
}
|
|
|
page_result();
|