|
|
@@ -142,8 +142,9 @@ class InitController extends Controller
|
|
|
$pfAdminId = $staff['adminId'] ?? 0;
|
|
|
$pfAdmin = AdminClass::getById($pfAdminId, true);
|
|
|
if (!empty($pfAdmin)) {
|
|
|
- if(empty($pfAdmin->currentGhsShopId)){
|
|
|
+ if (empty($pfAdmin->currentGhsShopId)) {
|
|
|
$pfAdmin->currentGhsShopId = $pfShopId;
|
|
|
+ $pfAdmin->ghsMiniOpenId = $pfAdmin->miniOpenId ?? '';
|
|
|
$pfAdmin->save();
|
|
|
}
|
|
|
} else {
|
|
|
@@ -205,7 +206,7 @@ class InitController extends Controller
|
|
|
$adminId = $staff['adminId'] ?? 0;
|
|
|
$admin = AdminClass::getById($adminId, true);
|
|
|
if (!empty($admin)) {
|
|
|
- if(empty($admin->currentShopId)){
|
|
|
+ if (empty($admin->currentShopId)) {
|
|
|
$admin->currentShopId = $lsShopId;
|
|
|
$admin->save();
|
|
|
}
|