dict::getDict('ptStyle','hd')]); if (empty($open)) { util::fail('没有找到花店平台信息...'); } $wxMiniBaseId = isset($open['wxMiniBaseId']) ? $open['wxMiniBaseId'] : 0; $base = WxMiniBaseClass::getById($wxMiniBaseId); if (empty($base)) { util::fail('没有找到平台小程序信息'); } return $base; } //公众号信息 ssh 2020.4.14 public static function getWxBase() { $open = self::getByCondition(['style' => dict::getDict('ptStyle','hd')]); if (empty($open)) { util::fail('没有找到花店平台信息...'); } $wxBaseId = isset($open['wxBaseId']) ? $open['wxBaseId'] : 0; $base = WxBaseClass::getById($wxBaseId); if (empty($base)) { util::fail('没有找到平台公众号信息'); } return $base; } //获取微信和小程序信息 ssh 2020.4.14 public static function getWxInfo() { $mini = self::getWxMiniBase(); $wx = self::getWxBase(); return array_merge($wx, $mini); } //公众号信息 ssh 2020.4.14 public static function getGhsWxBase() { $open = self::getByCondition(['style' => dict::getDict('ptStyle','ghs')]); if (empty($open)) { util::fail('没有找到供货商平台信息...'); } $wxBaseId = isset($open['wxBaseId']) ? $open['wxBaseId'] : 0; $base = WxBaseClass::getById($wxBaseId); if (empty($base)) { util::fail('没有找到平台公众号信息'); } return $base; } //平台小程序信息 ssh 2020.4.13 public static function getGhsWxMiniBase() { $open = self::getByCondition(['style' => dict::getDict('ptStyle','ghs')]); if (empty($open)) { util::fail('没有找到供货商平台信息...'); } $wxMiniBaseId = isset($open['wxMiniBaseId']) ? $open['wxMiniBaseId'] : 0; $base = WxMiniBaseClass::getById($wxMiniBaseId); if (empty($base)) { util::fail('没有找到平台小程序信息'); } return $base; } public static function getGhsWxInfo() { $mini = self::getGhsWxMiniBase(); $wx = self::getGhsWxBase(); return array_merge($wx, $mini); } public static function getMallWxInfo() { $mini = self::getMallWxMiniBase(); $wx = self::getMallWxBase(); return array_merge($wx, $mini); } public static function getMallWxMiniBase() { $open = self::getByCondition(['style' => dict::getDict('ptStyle','mall')]); if (empty($open)) { util::fail('没有找到供货商平台信息...'); } $wxMiniBaseId = isset($open['wxMiniBaseId']) ? $open['wxMiniBaseId'] : 0; $base = WxMiniBaseClass::getById($wxMiniBaseId); if (empty($base)) { util::fail('没有找到平台小程序信息'); } return $base; } //公众号信息 ssh 2020.4.14 public static function getMallWxBase() { $open = self::getByCondition(['style' => dict::getDict('ptStyle','mall')]); if (empty($open)) { util::fail('没有找到供货商平台信息...'); } $wxBaseId = isset($open['wxBaseId']) ? $open['wxBaseId'] : 0; $base = WxBaseClass::getById($wxBaseId); if (empty($base)) { util::fail('没有找到平台公众号信息'); } return $base; } }