Exemple #1
0
        public PlaceAPIHandler(Region region, string keyWord, DataGridView dataGridView = null, ISheet sheet = null)
        {
            // 外部参数
            this.region       = region;
            this.keyWord      = keyWord;
            this.dataGridView = dataGridView;
            this.sheet        = sheet;

            // 内部参数
            Dictionary dicAk = DictionaryDao.SelectByKey("ak");

            ak = dicAk.Value;
            Dictionary dicSk = DictionaryDao.SelectByKey("sk");

            sk       = dicSk.Value;
            url      = "/place/v2/search";
            totalNum = 0;
            getNum   = 0;
        }