commit
249708a8d5
@ -19,6 +19,7 @@ class BusinessOrdersUpdate
|
|||||||
public $num;
|
public $num;
|
||||||
public $businessGoods;
|
public $businessGoods;
|
||||||
public $goodsSku;
|
public $goodsSku;
|
||||||
|
public $combinationGoodsUpdate;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a new event instance.
|
* Create a new event instance.
|
||||||
@ -27,6 +28,7 @@ class BusinessOrdersUpdate
|
|||||||
*/
|
*/
|
||||||
public function __construct($item, $num)
|
public function __construct($item, $num)
|
||||||
{
|
{
|
||||||
|
$this->combinationGoodsUpdate = false;
|
||||||
$this->businessGoods = $item->toArray();
|
$this->businessGoods = $item->toArray();
|
||||||
$this->num = $num;
|
$this->num = $num;
|
||||||
$this->updateStock();
|
$this->updateStock();
|
||||||
|
|||||||
@ -147,6 +147,7 @@ class BusinessGoodsSkusController extends Controller
|
|||||||
->whereIn('name', $shopNames)
|
->whereIn('name', $shopNames)
|
||||||
->get();
|
->get();
|
||||||
$data = [];
|
$data = [];
|
||||||
|
$noActivityTitle = ['补款勿拍', '补运费'];
|
||||||
foreach ($shops as $shop) {
|
foreach ($shops as $shop) {
|
||||||
$business = BusinessFactory::init()->make($shop->plat_id);
|
$business = BusinessFactory::init()->make($shop->plat_id);
|
||||||
$business->setShop($shop);
|
$business->setShop($shop);
|
||||||
@ -156,7 +157,8 @@ class BusinessGoodsSkusController extends Controller
|
|||||||
}
|
}
|
||||||
$activityNos = $activities = [];
|
$activityNos = $activities = [];
|
||||||
foreach ($res['ktt_group_query_list_response']['activity_list'] as $activity) {
|
foreach ($res['ktt_group_query_list_response']['activity_list'] as $activity) {
|
||||||
if (0 === $activity['is_help_sell'] && '补款勿拍' !== $activity['title']) {
|
$title = str_replace(' ', $activity['title']);
|
||||||
|
if (0 === $activity['is_help_sell'] && !in_array($title, $noActivityTitle, true)) {
|
||||||
$activityNos[] = $activity['activity_no'];
|
$activityNos[] = $activity['activity_no'];
|
||||||
$activities[$activity['activity_no']] = $activity['title'];
|
$activities[$activity['activity_no']] = $activity['title'];
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user