Commit ba4a3ea2 authored by 李尚科's avatar 李尚科

存钱罐支持城市修改存钱罐支持城市修改" app/config

parent 7d34f5e9
Pipeline #12942 passed with stage
in 6 seconds
...@@ -311,9 +311,10 @@ class ToolController extends Controller { ...@@ -311,9 +311,10 @@ class ToolController extends Controller {
async planAreaList() { async planAreaList() {
const { ctx } = this; const { ctx } = this;
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_results = await ctx.service.house.v2.newHouse.getNewHouseCity();//v2.2 2019-8-27 15:18:26
const city_list_ret = await ctx.blockModel.City.all({ where: { code: { $in: setting_value } } }); const city_list_ret = city_list_results.results;
const city_list = []; const city_list = [];
for (let i in city_list_ret) { for (let i in city_list_ret) {
let city = city_list_ret[i]; 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