|
|
@ -18,6 +18,7 @@ use app\api\service\User as UserService; |
|
|
|
use app\api\service\sharp\Active as ActiveService; |
|
|
|
use app\api\service\sharp\Active as ActiveService; |
|
|
|
use app\common\service\qrcode\sharp\Goods as GoodsPoster; |
|
|
|
use app\common\service\qrcode\sharp\Goods as GoodsPoster; |
|
|
|
use cores\exception\BaseException; |
|
|
|
use cores\exception\BaseException; |
|
|
|
|
|
|
|
use app\api\service\Setting as SettingService; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 整点秒杀-商品管理 |
|
|
|
* 整点秒杀-商品管理 |
|
|
@ -57,6 +58,12 @@ class Goods extends Controller |
|
|
|
// 获取秒杀活动商品详情 |
|
|
|
// 获取秒杀活动商品详情 |
|
|
|
$service = new ActiveService; |
|
|
|
$service = new ActiveService; |
|
|
|
$data = $service->getActiveGoodsDetail($activeTimeId, $sharpGoodsId); |
|
|
|
$data = $service->getActiveGoodsDetail($activeTimeId, $sharpGoodsId); |
|
|
|
|
|
|
|
$storeId = $data['active']['store_id']; |
|
|
|
|
|
|
|
$merchantId = $data['goods']['merchant_id']; |
|
|
|
|
|
|
|
//获取客服设置 |
|
|
|
|
|
|
|
$service = new SettingService; |
|
|
|
|
|
|
|
$setting = $service->getGoodsCustomer($merchantId,$storeId); |
|
|
|
|
|
|
|
$data['setting'] = $setting; |
|
|
|
return $this->renderSuccess($data); |
|
|
|
return $this->renderSuccess($data); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|