'oss_domain', 'desc' => 'oss域名', 'type' => 'string'], ['name' => 'web_name', 'desc' => '站点名称', 'type' => 'string'], ['name' => 'web_favicon', 'desc' => '站点图标', 'type' => 'string'], ['name' => 'web_logo', 'desc' => '站点logo', 'type' => 'string'], ['name' => 'login_image', 'desc' => '登录页背景图', 'type' => 'string'], ['name' => 'copyright_config', 'desc' => '版权信息', 'type' => 'array'], ]), ] public function getConfig() { $data = ConfigLogic::getConfig(); return $this->data($data); } #[ ApiDoc\Title('门店配置'), ApiDoc\url('/store/config/store'), ApiDoc\Method('GET'), ApiDoc\NotHeaders(), ApiDoc\Author('中国队长'), ApiDoc\Header(ref: [Definitions::class, "token"]), ApiDoc\ResponseSuccess("data", type: "array"), ] public function store() { $params['id'] = $this->request->adminInfo['store_id']; $result = SystemStoreLogic::detail($params); return $this->data($result); } #[ ApiDoc\Title('保存门店配置'), ApiDoc\url('/store/config/saveStore'), ApiDoc\Method('POST'), ApiDoc\NotHeaders(), ApiDoc\Author('中国队长'), ApiDoc\Header(ref: [Definitions::class, "token"]), ApiDoc\ResponseSuccess("data", type: "array"), ] public function saveStore() { $params = $this->request->post(); $params['id'] = $this->request->adminInfo['store_id']; SystemStoreLogic::edit($params); return $this->success('操作成功', [], 1, 1); } #[ ApiDoc\Title('省列表'), ApiDoc\url('/store/config/province'), ApiDoc\Method('GET'), ApiDoc\NotHeaders(), ApiDoc\Author('中国队长'), ApiDoc\Header(ref: [Definitions::class, "token"]), ApiDoc\ResponseSuccess("data", type: "array"), ] public function province() { $list = Db::name('geo_province')->select()->toArray(); return $this->success('ok', $list); } #[ ApiDoc\Title('市列表'), ApiDoc\url('/store/config/city'), ApiDoc\Method('GET'), ApiDoc\NotHeaders(), ApiDoc\Author('中国队长'), ApiDoc\Query(name: 'code', type: 'int', require: true, desc: '省份代码'), ApiDoc\Header(ref: [Definitions::class, "token"]), ApiDoc\ResponseSuccess("data", type: "array"), ] public function city() { $province_code = $this->request->get('code'); $list = Db::name('geo_city')->where('province_code', $province_code)->select()?->toArray(); return $this->success('ok', $list); } #[ ApiDoc\Title('区列表'), ApiDoc\url('/store/config/area'), ApiDoc\Method('GET'), ApiDoc\NotHeaders(), ApiDoc\Author('中国队长'), ApiDoc\Query(name: 'code', type: 'int', require: true, desc: '城市代码'), ApiDoc\Header(ref: [Definitions::class, "token"]), ApiDoc\ResponseSuccess("data", type: "array"), ] public function area() { $city_code = $this->request->get('code'); $list = Db::name('geo_area')->where('city_code', $city_code)->select()?->toArray(); return $this->success('ok', $list); } }