61 lines
1.6 KiB
PHP
Raw Normal View History

<?php
namespace App\Services\Business\MiaoXuan;
2022-08-16 21:02:31 +08:00
use App\Models\BusinessGoodsSku;
use App\Services\Business\BusinessClient;
class MiaoXuan extends BusinessClient
{
public function auth()
{
// TODO: Implement auth() method.
}
public function downloadGoodsListAndBind($activityNo)
{
}
2022-08-06 16:38:04 +08:00
public function bindGoods($goods)
{
Goods::bindGoods($goods, $this->shop->id);
}
2022-08-16 21:02:31 +08:00
public function incrQuantity($businessGoodsSku, $num, $incremental)
{
2022-08-16 21:02:31 +08:00
$appendParams = Goods::incrQuantity($this->shop->id, $num, $businessGoodsSku);
2022-08-08 15:05:17 +08:00
$url = 'http://shop.chutang66.com/miaoxuan/stock';
2022-08-06 16:38:04 +08:00
$this->formDataPostRequest($url, $appendParams);
}
public function downloadOrdersAndSave($beginTime, $endTime, $downloadType = 'default', $page = 1)
{
}
2022-11-04 15:01:55 +08:00
public function batchIncrQuantity($businessGoodsSkus, $num, $incremental)
{
2022-11-04 15:11:43 +08:00
$batchAppendParams = [];
foreach ($businessGoodsSkus as $businessGoodsSku) {
$appendParams = Goods::incrQuantity($this->shop->id, $num, $businessGoodsSku);
$batchAppendParams[] = $appendParams;
}
$this->batchAsyncPostRequest('http://shop.chutang66.com/miaoxuan/stock', $batchAppendParams);
2022-11-04 15:01:55 +08:00
}
public function downloadGoods($skuId)
{
// TODO: Implement downloadGoods() method.
}
2023-08-28 13:42:27 +08:00
public function createLogistic($orderSn, $waybillNo)
{
// TODO: Implement createLogistic() method.
}
public function cancelLogistic($orderSn, $waybillNo)
{
// TODO: Implement cancelLogistic() method.
}
}