UpgradeLogic.php 779 B

1234567891011121314151617181920212223242526
  1. <?php
  2. namespace addons\WechatVideoShop\common\logic;
  3. use addons\WechatVideoShop\common\models\WechatVideoShopLevel;
  4. use addons\WechatVideoShop\common\models\WechatVideoShopSharer;
  5. use common\enums\AddonsEnum;
  6. class UpgradeLogic
  7. {
  8. /**
  9. * 升级
  10. * @param array $order
  11. * @return void
  12. */
  13. public static function exec(array $order)
  14. {
  15. $upgrade = new BuyGoodsUpgrade();
  16. $upgrade->execute(AddonsEnum::ADDONS_NAME_WECHAT_VIDEO_SHOP, (new WechatVideoShopSharer()), (new WechatVideoShopLevel()), $order);
  17. // 触发条件升级
  18. $cond_upgrade = new ConditionUpgradeLogic();
  19. $cond_upgrade->execute(AddonsEnum::ADDONS_NAME_WECHAT_VIDEO_SHOP, (new WechatVideoShopSharer()), (new WechatVideoShopLevel()), $order);
  20. }
  21. }