Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
commit
597723d90b
@ -218,12 +218,6 @@ class StoreOtherOrderRepository extends BaseRepository
|
|||||||
'user_type' => $storeOrderStatusRepository::U_TYPE_USER,
|
'user_type' => $storeOrderStatusRepository::U_TYPE_USER,
|
||||||
];
|
];
|
||||||
|
|
||||||
if ($order->order_type == 0) {
|
|
||||||
//发起队列物流信息处理
|
|
||||||
//event('order.sendGoodsCode', $order);
|
|
||||||
Queue::push(SendGoodsCodeJob::class, $order);
|
|
||||||
}
|
|
||||||
|
|
||||||
// 商户流水账单数据
|
// 商户流水账单数据
|
||||||
$finance[] = [
|
$finance[] = [
|
||||||
'order_id' => $order->order_id,
|
'order_id' => $order->order_id,
|
||||||
@ -351,18 +345,9 @@ class StoreOtherOrderRepository extends BaseRepository
|
|||||||
}
|
}
|
||||||
$financialRecordRepository->insertAll($finance);
|
$financialRecordRepository->insertAll($finance);
|
||||||
$storeOrderStatusRepository->batchCreateLog($orderStatus);
|
$storeOrderStatusRepository->batchCreateLog($orderStatus);
|
||||||
if (count($groupOrder['give_coupon_ids']) > 0)
|
|
||||||
$groupOrder['give_coupon_ids'] = app()->make(StoreCouponRepository::class)->getGiveCoupon($groupOrder['give_coupon_ids'])->column('coupon_id');
|
|
||||||
$groupOrder->save();
|
$groupOrder->save();
|
||||||
});
|
});
|
||||||
|
|
||||||
if (count($groupOrder['give_coupon_ids']) > 0) {
|
|
||||||
try {
|
|
||||||
Queue::push(PayGiveCouponJob::class, ['ids' => $groupOrder['give_coupon_ids'], 'uid' => $groupOrder['uid']]);
|
|
||||||
} catch (Exception $e) {
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
Queue::push(SendSmsJob::class, ['tempId' => 'ORDER_PAY_SUCCESS', 'id' => $groupOrder->group_order_id]);
|
Queue::push(SendSmsJob::class, ['tempId' => 'ORDER_PAY_SUCCESS', 'id' => $groupOrder->group_order_id]);
|
||||||
Queue::push(SendSmsJob::class, ['tempId' => 'ADMIN_PAY_SUCCESS_CODE', 'id' => $groupOrder->group_order_id]);
|
Queue::push(SendSmsJob::class, ['tempId' => 'ADMIN_PAY_SUCCESS_CODE', 'id' => $groupOrder->group_order_id]);
|
||||||
Queue::push(UserBrokerageLevelJob::class, ['uid' => $groupOrder->uid, 'type' => 'pay_money', 'inc' => $groupOrder->pay_price]);
|
Queue::push(UserBrokerageLevelJob::class, ['uid' => $groupOrder->uid, 'type' => 'pay_money', 'inc' => $groupOrder->pay_price]);
|
||||||
|
@ -2346,7 +2346,7 @@ class ProductRepository extends BaseRepository
|
|||||||
foreach ($data['attrValue'] as $k => $item) {
|
foreach ($data['attrValue'] as $k => $item) {
|
||||||
//$data['attrValue'][$k]['stock'] = 0;
|
//$data['attrValue'][$k]['stock'] = 0;
|
||||||
}
|
}
|
||||||
app()->make(ProductLabelRepository::class)->checkHas($merId, $data['mer_labels']);
|
app()->make(ProductLabelRepository::class)->checkHas(0, $data['mer_labels']);
|
||||||
$count = app()->make(StoreCategoryRepository::class)->getWhereCount(['store_category_id' => $data['cate_id'], 'is_show' => 1]);
|
$count = app()->make(StoreCategoryRepository::class)->getWhereCount(['store_category_id' => $data['cate_id'], 'is_show' => 1]);
|
||||||
if (!$count) throw new ValidateException('平台分类不存在或不可用');
|
if (!$count) throw new ValidateException('平台分类不存在或不可用');
|
||||||
app()->make(StoreProductValidate::class)->check($data);
|
app()->make(StoreProductValidate::class)->check($data);
|
||||||
|
@ -32,6 +32,8 @@ use app\common\repositories\user\UserSignRepository;
|
|||||||
use app\common\repositories\user\UserVisitRepository;
|
use app\common\repositories\user\UserVisitRepository;
|
||||||
use app\common\repositories\wechat\TemplateMessageRepository;
|
use app\common\repositories\wechat\TemplateMessageRepository;
|
||||||
use app\common\repositories\wechat\WechatUserRepository;
|
use app\common\repositories\wechat\WechatUserRepository;
|
||||||
|
use app\common\repositories\store\product\ProductLabelRepository;
|
||||||
|
|
||||||
use app\common\model\system\merchant\Merchant;
|
use app\common\model\system\merchant\Merchant;
|
||||||
use crmeb\basic\BaseController;
|
use crmeb\basic\BaseController;
|
||||||
use crmeb\services\AlipayService;
|
use crmeb\services\AlipayService;
|
||||||
@ -593,4 +595,15 @@ class Common extends BaseController
|
|||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 商品标签
|
||||||
|
*/
|
||||||
|
public function label_lst(ProductLabelRepository $repository)
|
||||||
|
{
|
||||||
|
[$page, $limit] = $this->getPage();
|
||||||
|
$where = $this->request->params(['name', 'type', 'status']);
|
||||||
|
$data = $repository->getList($where,$page, $limit);
|
||||||
|
return app('json')->success($data);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -30,7 +30,9 @@ class ProductLabel extends BaseController
|
|||||||
{
|
{
|
||||||
[$page, $limit] = $this->getPage();
|
[$page, $limit] = $this->getPage();
|
||||||
$where = $this->request->params(['name', 'type', 'status']);
|
$where = $this->request->params(['name', 'type', 'status']);
|
||||||
$where['mer_id'] = $this->request->merId();
|
if($where['type']!=1){
|
||||||
|
$where['mer_id'] = $this->request->merId();
|
||||||
|
}
|
||||||
$data = $this->repository->getList($where,$page, $limit);
|
$data = $this->repository->getList($where,$page, $limit);
|
||||||
return app('json')->success($data);
|
return app('json')->success($data);
|
||||||
}
|
}
|
||||||
|
@ -21,6 +21,7 @@ use think\facade\Route;
|
|||||||
|
|
||||||
Route::group('api/', function () {
|
Route::group('api/', function () {
|
||||||
Route::any('test', 'api.Auth/test');
|
Route::any('test', 'api.Auth/test');
|
||||||
|
Route::get('label_lst', 'api.Common/label_lst');
|
||||||
Route::any('system_group_value', 'api.Common/system_group_value');
|
Route::any('system_group_value', 'api.Common/system_group_value');
|
||||||
Route::any('demo_ceshi', 'api.Demo/index');
|
Route::any('demo_ceshi', 'api.Demo/index');
|
||||||
Route::any('dotest', 'api.Auth/dotest');
|
Route::any('dotest', 'api.Auth/dotest');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user