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