refactor: 修改后台批量询盘采购可选品类接口
This commit is contained in:
@@ -16,12 +16,11 @@ class BulkPurchaseInquiry
|
|||||||
public function interested()
|
public function interested()
|
||||||
{
|
{
|
||||||
$config_name = 'bulk_purchase_inquiry_interested';
|
$config_name = 'bulk_purchase_inquiry_interested';
|
||||||
$lang = LanguageModel::bypk(request()->lang_id)->find();
|
$config = SysConfigModel::hasWhere('group', function($query) {
|
||||||
if (empty($lang)) {
|
$query->where('language_id', '=', request()->lang_id);
|
||||||
return error('当前选定语言出错');
|
})
|
||||||
}
|
->byName($config_name)
|
||||||
|
->find();
|
||||||
$config = SysConfigModel::byName($lang->code . '_' . $config_name)->find();
|
|
||||||
if (empty($config)) {
|
if (empty($config)) {
|
||||||
return error('当前选定语言的采购可选品类配置出错');
|
return error('当前选定语言的采购可选品类配置出错');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user