|
|
@@ -18,8 +18,7 @@ class AdminController extends BaseController
|
|
|
//最近店铺 ssh 2021.2.27
|
|
|
public function actionRecentShop()
|
|
|
{
|
|
|
- $respond = AdminClass::getRecentShop($this->admin);
|
|
|
- util::success($respond);
|
|
|
+ util::success([]);
|
|
|
}
|
|
|
|
|
|
//获取登陆员工的权限 ssh 2019.11.24
|
|
|
@@ -84,7 +83,7 @@ class AdminController extends BaseController
|
|
|
if ($new != $confirm) {
|
|
|
util::fail('二次密码不一致');
|
|
|
}
|
|
|
- $admin = $this->admin;
|
|
|
+ $admin = $this->admin->attributes;
|
|
|
$adminId = $this->adminId;
|
|
|
if (!empty($admin['password'])) {
|
|
|
if (empty($old)) {
|
|
|
@@ -111,7 +110,7 @@ class AdminController extends BaseController
|
|
|
if ($new != $confirm) {
|
|
|
util::fail('二次密码不一致');
|
|
|
}
|
|
|
- $admin = $this->admin;
|
|
|
+ $admin = $this->admin->attributes;
|
|
|
$adminId = $this->adminId;
|
|
|
if (!empty($admin['payPassword'])) {
|
|
|
if (empty($old)) {
|
|
|
@@ -141,7 +140,7 @@ class AdminController extends BaseController
|
|
|
$encryptedData = isset($post['encryptedData']) ? $post['encryptedData'] : '';
|
|
|
$merchant = WxOpenService::getWxInfo();
|
|
|
$appId = $merchant['miniAppId'];
|
|
|
- $admin = $this->admin;
|
|
|
+ $admin = $this->admin->attributes;
|
|
|
$miniOpenId = $admin['miniOpenId'];
|
|
|
if (empty($miniOpenId)) {
|
|
|
util::fail('没有找到管理员信息(miniOpenId)');
|
|
|
@@ -174,7 +173,7 @@ class AdminController extends BaseController
|
|
|
$encryptedData = $post['encryptedData'];
|
|
|
$merchant = WxOpenService::getWxInfo();
|
|
|
$appId = $merchant['miniAppId'];
|
|
|
- $admin = $this->admin;
|
|
|
+ $admin = $this->admin->attributes;
|
|
|
$miniOpenId = $admin['miniOpenId'];
|
|
|
if (empty($miniOpenId)) {
|
|
|
util::fail('没有找到管理员信息(miniOpenId)');
|