|
|
@@ -178,13 +178,14 @@ class InitController extends Controller
|
|
|
$pfAdmin->currentGhsShopId = $pfShopId;
|
|
|
$pfAdmin->ghsMiniOpenId = $pfAdmin->miniOpenId ?? '';
|
|
|
$pfAdmin->miniOpenId = '';
|
|
|
- $pfAdmin->currentShopId = '';
|
|
|
+ $pfAdmin->currentShopId = 0;
|
|
|
$pfAdmin->save();
|
|
|
}
|
|
|
} else {
|
|
|
echo "没有找到shopId:{$pfShopId}批发店的员工\n";
|
|
|
}
|
|
|
$staffMobile = $staff['mobile'] ?? '';
|
|
|
+ //删除和批发店用一样手机号的 零售和基地供应商 员工
|
|
|
if (!empty($staffMobile)) {
|
|
|
$h = AdminClass::getAllByCondition(['mobile' => $staffMobile, 'style' => dict::getDict('ptStyle', 'hd')], null, '*', null, true);
|
|
|
if (!empty($h)) {
|