|
@@ -124,6 +124,7 @@ class GhsClass extends BaseClass
|
|
|
$mobile = $shop['mobile'] ?? '';
|
|
$mobile = $shop['mobile'] ?? '';
|
|
|
$uniGhsId = $shop['uniGhsId'] ?? 0;
|
|
$uniGhsId = $shop['uniGhsId'] ?? 0;
|
|
|
$hasManyGhs = $shop['hasManyGhs'] ?? 0;
|
|
$hasManyGhs = $shop['hasManyGhs'] ?? 0;
|
|
|
|
|
+ $hdShopPt = intval($shop['pt'] ?? 0);
|
|
|
if ($uniGhsId == 0 && $hasManyGhs == 0) {
|
|
if ($uniGhsId == 0 && $hasManyGhs == 0) {
|
|
|
ShopClass::updateById($hdShopId, ['uniGhsId' => $ghsId]);
|
|
ShopClass::updateById($hdShopId, ['uniGhsId' => $ghsId]);
|
|
|
} else {
|
|
} else {
|
|
@@ -165,6 +166,7 @@ class GhsClass extends BaseClass
|
|
|
'home' => $home,
|
|
'home' => $home,
|
|
|
'homeAmount' => $homeAmount,
|
|
'homeAmount' => $homeAmount,
|
|
|
'homeNum' => $homeNum,
|
|
'homeNum' => $homeNum,
|
|
|
|
|
+ 'pt' => $hdShopPt === 1 ? 1 : 0,
|
|
|
];
|
|
];
|
|
|
$custom = CustomClass::addCustom($customData);
|
|
$custom = CustomClass::addCustom($customData);
|
|
|
}
|
|
}
|