Commit e4fb599d by 朱继来

调整编辑报价

parent 5cb723e3
Showing with 13 additions and 0 deletions
......@@ -703,6 +703,19 @@ class QuoteModel extends Model
$quote_info['brand_name'] = $brand[0]['brand_name'];
unset($quote_info['brand_s']);
$params = [];
$params['spu_name'] = strtoupper($quote_info['goods_name']);
$params['brand_name'] = $quote_info['brand_name'];
$SearchModel = new SearchModel;
$res = $SearchModel->getClassName(json_encode([$params])); // 获取型号分类
if ($res) {
$classInfo = $res[$params['spu_name']."#".strtoupper($params["brand_name"])];
$quote_info['class_id2'] = $classInfo['class_id2'];
$quote_info['class_id2_name'] = $classInfo['class_id2_name'];
}
$this->where('id', $input['quote_id'])->update($quote_info);
$data = [];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment