|
@@ -502,7 +502,7 @@ class StoreProductCheck extends AuthController
|
|
|
unset($info['id']);
|
|
unset($info['id']);
|
|
|
unset($info['add_time']);
|
|
unset($info['add_time']);
|
|
|
\app\admin\model\store\StoreProduct::edit($info, $product['id']);
|
|
\app\admin\model\store\StoreProduct::edit($info, $product['id']);
|
|
|
- StoreDescription::saveDescription($description, $product['id'], 0);
|
|
|
|
|
|
|
+ StoreDescription::saveDescription(htmlspecialchars_decode($description), $product['id'], 0);
|
|
|
StoreProductCate::where('product_id', $product['id'])->delete();
|
|
StoreProductCate::where('product_id', $product['id'])->delete();
|
|
|
$cateData = [];
|
|
$cateData = [];
|
|
|
foreach ($cate_id as $cid) {
|
|
foreach ($cate_id as $cid) {
|
|
@@ -524,7 +524,7 @@ class StoreProductCheck extends AuthController
|
|
|
$info['check_id'] = $id;
|
|
$info['check_id'] = $id;
|
|
|
$info['add_time'] = time();
|
|
$info['add_time'] = time();
|
|
|
$res = \app\admin\model\store\StoreProduct::create($info);
|
|
$res = \app\admin\model\store\StoreProduct::create($info);
|
|
|
- StoreDescription::saveDescription($description, $res['id'], 0);
|
|
|
|
|
|
|
+ StoreDescription::saveDescription(htmlspecialchars_decode($description), $res['id'], 0);
|
|
|
$cateData = [];
|
|
$cateData = [];
|
|
|
foreach ($cate_id as $cid) {
|
|
foreach ($cate_id as $cid) {
|
|
|
$cateData[] = ['product_id' => $res['id'], 'cate_id' => $cid, 'add_time' => time()];
|
|
$cateData[] = ['product_id' => $res['id'], 'cate_id' => $cid, 'add_time' => time()];
|