props_params = $params; // 视图初始化 $this->ViewInit(); } /** * 属性读取处理 * @author Devil * @blog http://gong.gg/ * @version 1.0.0 * @date 2024-04-23 * @desc description * @param [string] $name [属性名称] * @return [mixed] [属性的数据] */ public function __get($name) { return (!empty($this->props_params) && is_array($this->props_params) && isset($this->props_params[$name])) ? $this->props_params[$name] : null; } /** * 视图初始化 * @author Devil * @blog http://gong.gg/ * @version 1.0.0 * @date 2020-12-25 * @desc description */ public function ViewInit() { // 插件配置信息 $base = BaseService::BaseConfig(); $this->plugins_config = $base['data']; // 用户钱包 $wallet = empty($this->user['id']) ? null : WalletService::UserWallet($this->user['id']); $this->user_wallet = (empty($wallet) || empty($wallet['data'])) ? null : $wallet['data']; } } ?>