mirror of
https://gitee.com/hzchunfen/erp.git
synced 2025-12-01 06:30:49 +00:00
commit
3227d5019e
@ -154,7 +154,6 @@ class BusinessOrderController extends Controller
|
|||||||
->where('plat_id', Shop::$PLAT_KTT)
|
->where('plat_id', Shop::$PLAT_KTT)
|
||||||
->pluck('id');
|
->pluck('id');
|
||||||
$builder = BusinessOrder::query()
|
$builder = BusinessOrder::query()
|
||||||
->where('order_sn', 'PO-230728-287005797932723')
|
|
||||||
->with('items')
|
->with('items')
|
||||||
->whereIn('shop_id', $shopIds)
|
->whereIn('shop_id', $shopIds)
|
||||||
->filter();
|
->filter();
|
||||||
|
|||||||
@ -18,10 +18,6 @@ class WayBillService
|
|||||||
// 已下单过的订单不再下单
|
// 已下单过的订单不再下单
|
||||||
$contents = [];
|
$contents = [];
|
||||||
foreach ($this->orders as $shopId => $order) {
|
foreach ($this->orders as $shopId => $order) {
|
||||||
// 花落测试;
|
|
||||||
if ($shopId !== 6) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
// 订单取消的情况暂不处理
|
// 订单取消的情况暂不处理
|
||||||
$shop = $this->getShop($shopId);
|
$shop = $this->getShop($shopId);
|
||||||
$faceSheet = new FaceSheet();
|
$faceSheet = new FaceSheet();
|
||||||
@ -29,6 +25,7 @@ class WayBillService
|
|||||||
foreach ($order as $item) {
|
foreach ($order as $item) {
|
||||||
[$sender, $orderInfo, $wpCode] = $this->prepareRequest($item, $shop);
|
[$sender, $orderInfo, $wpCode] = $this->prepareRequest($item, $shop);
|
||||||
$waybill = $this->saveWayBill($item, $shop);
|
$waybill = $this->saveWayBill($item, $shop);
|
||||||
|
|
||||||
if (empty($waybill->id)) {
|
if (empty($waybill->id)) {
|
||||||
$resp = $faceSheet->getWayBill($sender, $orderInfo, $wpCode);
|
$resp = $faceSheet->getWayBill($sender, $orderInfo, $wpCode);
|
||||||
if (isset($resp['pdd_waybill_get_response'])) {
|
if (isset($resp['pdd_waybill_get_response'])) {
|
||||||
|
|||||||
@ -26,7 +26,7 @@ class CreateShopSendersTable extends Migration
|
|||||||
$table->string('district');
|
$table->string('district');
|
||||||
$table->string('detail');
|
$table->string('detail');
|
||||||
$table->string('name')->nullable()->default('');
|
$table->string('name')->nullable()->default('');
|
||||||
$table->integer('mobile')->nullable();
|
$table->string('mobile', 18)->nullable();
|
||||||
$table->integer('sort')->default(1);
|
$table->integer('sort')->default(1);
|
||||||
$table->integer('status')->default(1);
|
$table->integer('status')->default(1);
|
||||||
$table->string('wp_code')->default('');
|
$table->string('wp_code')->default('');
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user