|
@@ -193,6 +193,9 @@ class DouYinService
|
|
|
}
|
|
}
|
|
|
$platformGoods = $platformGoods->toArray();
|
|
$platformGoods = $platformGoods->toArray();
|
|
|
$quantity = $quantity?:1;
|
|
$quantity = $quantity?:1;
|
|
|
|
|
+ $appointment_time = strtotime($params['appointment_time']??date('Y-m-d H:i:s',time()));
|
|
|
|
|
+ $bookStartTime = $appointment_time * 1000;
|
|
|
|
|
+ $bookEndTime = ($appointment_time + (2 * 86400)) * 1000;
|
|
|
$data = [
|
|
$data = [
|
|
|
/*"goodsList" => [
|
|
/*"goodsList" => [
|
|
|
"quantity" => $quantity,
|
|
"quantity" => $quantity,
|
|
@@ -204,24 +207,24 @@ class DouYinService
|
|
|
],*/
|
|
],*/
|
|
|
"skuList" => [
|
|
"skuList" => [
|
|
|
[
|
|
[
|
|
|
- "quantity" => $quantity,
|
|
|
|
|
|
|
+ "quantity" => (int)$quantity,
|
|
|
"skuId" => (string)$platformGoods['external_goods_sn'],
|
|
"skuId" => (string)$platformGoods['external_goods_sn'],
|
|
|
"skuType" => 1, // 1:商品库商品 2:非商品库商品(融合预约品走加价时,固定传2)
|
|
"skuType" => 1, // 1:商品库商品 2:非商品库商品(融合预约品走加价时,固定传2)
|
|
|
"price" => $platformGoods['service_fee'] * 100,
|
|
"price" => $platformGoods['service_fee'] * 100,
|
|
|
]
|
|
]
|
|
|
],
|
|
],
|
|
|
- /*"bookInfo" => [
|
|
|
|
|
|
|
+ "bookInfo" => [
|
|
|
"itemBookInfoList"=>[
|
|
"itemBookInfoList"=>[
|
|
|
[
|
|
[
|
|
|
"poiId" => '7511543640776017961',
|
|
"poiId" => '7511543640776017961',
|
|
|
"shopName" => '亿蜂快修·武汉市',
|
|
"shopName" => '亿蜂快修·武汉市',
|
|
|
- "outShopId" => self::EXTERNAL_PLATFORM_ID,
|
|
|
|
|
|
|
+ "outShopId" => (string)self::EXTERNAL_PLATFORM_ID,
|
|
|
"skuId" => (string)$platformGoods['external_goods_sn'],
|
|
"skuId" => (string)$platformGoods['external_goods_sn'],
|
|
|
"bookStartTime" => $bookStartTime?:'',
|
|
"bookStartTime" => $bookStartTime?:'',
|
|
|
"bookEndTime" => $bookEndTime?:'',
|
|
"bookEndTime" => $bookEndTime?:'',
|
|
|
]
|
|
]
|
|
|
]
|
|
]
|
|
|
- ],*/
|
|
|
|
|
|
|
+ ],
|
|
|
"payment" => [
|
|
"payment" => [
|
|
|
"totalAmount" => $quantity * $platformGoods['service_fee'] * 100,
|
|
"totalAmount" => $quantity * $platformGoods['service_fee'] * 100,
|
|
|
],
|
|
],
|