Commit 50afec94 authored by 李尚科's avatar 李尚科

fix

parent 7a68749a
Pipeline #9801 passed with stage
in 16 seconds
......@@ -233,7 +233,9 @@ class ToolController extends Controller {
async planAreaList() {
const { ctx } = this;
const city_list_ret = await ctx.blockModel.City.all({ where: { level: 2 } });
const setting_ret = await ctx.blockModel.Setting.one({ where: { keyword: 'config_fangc_hot_city' } });
const setting_value = ctx.helper.JsonParse(setting_ret.value);
const city_list_ret = await ctx.blockModel.City.all({ where: { code: { $in: setting_value } } });
const city_list = [];
for (let i in city_list_ret) {
let city = city_list_ret[i];
......
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 to comment