This commit is contained in:
mkm 2023-12-05 17:11:28 +08:00
parent 0efcdfc7d2
commit 7182edcb14
3 changed files with 10 additions and 2 deletions

View File

@ -2570,7 +2570,7 @@ class StoreOrderRepository extends BaseRepository
} else {
//默认其他分类
$cate_id = 1726;
$spec_type = 1;
$spec_type = 0;
$detail = $attr;
/**查询平台分类 */
@ -2697,6 +2697,8 @@ class StoreOrderRepository extends BaseRepository
"mer_status" => 1,
"rate" => 3,
];
halt($datas);
$make = app()->make(ProductRepository::class);
$product_id = $make->create($datas, $product_type);
if ($product_id) {
@ -2747,6 +2749,7 @@ class StoreOrderRepository extends BaseRepository
$attrValue['price'] = $datum['value']['price'];
$attrValue['procure_price'] = $procure_price;
$attrValue["image"] = "https://lihai001.oss-cn-chengdu.aliyuncs.com/public/kk/luzhou/static4/oa_app/23565656.png";
Db::name('store_product')->where('product_id',$find['product_id'])->update(['spec_type'=>1]);
Db::name('store_product_attr_value')->insert($attrValue);
}
/**

View File

@ -38,6 +38,9 @@ class CacheRepository extends BaseRepository
const CONSIGN_PRODUCT_AGREE = 'consign_product_agree';
//商户开通采购、交易及结算功能协议
const MERC_SETTLE_AGREE = 'mer_settlement_agree';
//生鲜类商品交易售后纠纷处理规则
const FRESHRULES = 'fresh_rules';
//积分说明
const INTEGRAL_RULE = 'sys_integral_rule';
@ -91,6 +94,7 @@ class CacheRepository extends BaseRepository
['label' => '供应链商户补充协议','key' => self::MERC_SUPPLY_AGREE],
['label' => '产品代销三方合作协议书', 'key' => self::CONSIGN_PRODUCT_AGREE],
['label' => '商户开通采购、交易及结算功能协议', 'key' => self::MERC_SETTLE_AGREE],
['label' => '生鲜类商品交易售后纠纷处理规则', 'key' => self::FRESHRULES],
];
if (!$type) {
$data[] = ['label' => '注销声明', 'key' => self::CANCELLATION_MSG];
@ -125,6 +129,7 @@ class CacheRepository extends BaseRepository
self::MERC_SUPPLY_AGREE,
self::CONSIGN_PRODUCT_AGREE,
self::MERC_SETTLE_AGREE,
self::FRESHRULES,
];
}

View File

@ -37,7 +37,7 @@ return [
\crmeb\listens\AutoUnLockBrokerageListen::class,
\crmeb\listens\AutoSendPayOrderSmsListen::class,
\crmeb\listens\SyncSmsResultCodeListen::class,
\crmeb\listens\SyncBroadcastStatusListen::class,
// \crmeb\listens\SyncBroadcastStatusListen::class,直播间
\crmeb\listens\ExcelFileDelListen::class,
\crmeb\listens\RefundOrderAgreeListen::class,
\crmeb\listens\SeckillTImeCheckListen::class,