|
|
|
@ -8,6 +8,7 @@ use App\Exception\ErrorCodeException; |
|
|
|
use App\Request\v3\OrderOnlineDetailRequest; |
|
|
|
use App\Request\v3\OrderOnlineRequest; |
|
|
|
use App\Service\CouponServiceInterface; |
|
|
|
use App\Service\v3\Interfaces\ShopCartServiceInterface; |
|
|
|
use Hyperf\Di\Annotation\Inject; |
|
|
|
use App\Service\v3\Interfaces\OrderOnlineServiceInterface; |
|
|
|
use App\Service\v3\Interfaces\UserBindTelServiceInterface; |
|
|
|
@ -38,6 +39,12 @@ class OrderOnlineController extends BaseController |
|
|
|
*/ |
|
|
|
protected $orderOnlineService; |
|
|
|
|
|
|
|
/** |
|
|
|
* @Inject |
|
|
|
* @var ShopCartServiceInterface |
|
|
|
*/ |
|
|
|
protected $shopCartService; |
|
|
|
|
|
|
|
/* |
|
|
|
* 如果没有绑手机号去绑定页面 |
|
|
|
* 收货地址接口 |
|
|
|
@ -69,50 +76,7 @@ class OrderOnlineController extends BaseController |
|
|
|
//返回预约送达时间 数组
|
|
|
|
$res['appointment_time'] = $this->appointmentTimeService->do(); |
|
|
|
//
|
|
|
|
$res['store_list'] = [ |
|
|
|
[ |
|
|
|
'store_nmae' => '五金杂货铺', |
|
|
|
'price' => '100.00', |
|
|
|
'note' => '多放辣椒', |
|
|
|
'store_id' => 66, |
|
|
|
'goods_list' => |
|
|
|
[ |
|
|
|
[ |
|
|
|
'id' => 3971, |
|
|
|
'goods_id' => 1301, |
|
|
|
'name' => '半边手撕鸡', |
|
|
|
'num' => 4, |
|
|
|
'price' => '90.00', |
|
|
|
'total' => '360.00' |
|
|
|
] |
|
|
|
] |
|
|
|
], |
|
|
|
[ |
|
|
|
'store_nmae' => '回味手撕鸡J009', |
|
|
|
'note' => '手撕鸡加辣', |
|
|
|
'store_price' => '720.00', |
|
|
|
'store_id' => 123, |
|
|
|
'goods_list' => |
|
|
|
[ |
|
|
|
[ |
|
|
|
'id' => 3971, |
|
|
|
'goods_id' => 1301, |
|
|
|
'name' => '半边手撕鸡', |
|
|
|
'num' => 4, |
|
|
|
'price' => '90.00', |
|
|
|
'total' => '360.00' |
|
|
|
], |
|
|
|
[ |
|
|
|
'id' => 3971, |
|
|
|
'goods_id' => 1301, |
|
|
|
'name' => '半边手撕鸡', |
|
|
|
'num' => 4, |
|
|
|
'price' => '90.00', |
|
|
|
'total' => '360.00' |
|
|
|
] |
|
|
|
] |
|
|
|
], |
|
|
|
]; |
|
|
|
$res['store_list'] = $this->shopCartService->do(); |
|
|
|
//获取用户优惠券
|
|
|
|
$res['coupon'] = $this->couponService->getUserAvailableCoupons('',$params['user_id'],'',2,'',''); |
|
|
|
//获取配送费
|
|
|
|
|