| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- <?php
- /**
- * 重庆赤晓店信息科技有限公司
- * https://www.chixiaodian.com
- * Copyright (c) 2023 赤店商城 All rights reserved.
- */
- /*
- * @Author: your name
- * @Date: 2021-03-02 09:50:20
- * @LastEditTime: 2021-05-20 18:08:04
- * @LastEditors: Please set LastEditors
- * @Description: In User Settings Edit
- * @FilePath: \admin_php\modules\client\models\v1\StoreConfigForm.php
- */
- namespace app\modules\alliance\models;
- use app\constants\StoreImageFrom;
- use app\models\AppNavbar;
- use app\models\District;
- use app\models\Option;
- use yii\base\Model;
- class ConfigForm extends Model
- {
- public static function getConfig()
- {
- // 服务器图片
- $form = new StoreImageFrom();
- $wxappImg = $form->search();
- // $lang = '';
- // if (is_platform()) {
- // $lang = Option::get('lang', 0, 'saas', 'zh-CN')['value'];
- // } else {
- // $lang = Option::get('language', get_store_id(), 'display', 'zh-CN')['value'];
- // }
- // $store_info = self::getStore($store_id);
- // $store_info['latitude'] = $lat;
- // $store_info['longitude'] = $long;
- // $store_info['distance'] = $distance;
- // $store_info['mobile'] = $store->contact_tel;
- // $store_info['address'] = $store->address;
- // $store_info['province_name'] = District::findOne($store->province_id)->name;
- // $store_info['city_name'] = District::findOne($store->city_id)->name;
- // $store_info['district_name'] = District::findOne($store->district_id)->name;
- // $store_info['cover_url'] = $store->logo;
- $config = [
- 'images' => $wxappImg
- //'share_setting' => $share_form->getShareSetting()['data'],
- // 'wx_bar_title' => [],
- // 'store_name' => $store_name ? $store_name['value'] : '',
- // 'contact_tel' => $contact_tel ? $contact_tel['value'] : '',
- // 'store' => $store_info,
- // 'navbar' => self::getNav(),
- // 'platform_appid' => Option::getSaasWechat()['sp_appid'],
- // 'language' => $lang
- ];
- return $config;
- }
- }
|