| 1234567891011121314151617181920212223242526 |
- <?php
- namespace addons\WechatVideoShop\common\logic;
- use addons\WechatVideoShop\common\models\WechatVideoShopLevel;
- use addons\WechatVideoShop\common\models\WechatVideoShopSharer;
- use common\enums\AddonsEnum;
- class UpgradeLogic
- {
- /**
- * 升级
- * @param array $order
- * @return void
- */
- public static function exec(array $order)
- {
- $upgrade = new BuyGoodsUpgrade();
- $upgrade->execute(AddonsEnum::ADDONS_NAME_WECHAT_VIDEO_SHOP, (new WechatVideoShopSharer()), (new WechatVideoShopLevel()), $order);
- // 触发条件升级
- $cond_upgrade = new ConditionUpgradeLogic();
- $cond_upgrade->execute(AddonsEnum::ADDONS_NAME_WECHAT_VIDEO_SHOP, (new WechatVideoShopSharer()), (new WechatVideoShopLevel()), $order);
- }
- }
|