审查视图

addons/shopro/library/Activity.php 510 字节
何书鹏 authored
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
<?php

namespace addons\shopro\library;

/**
 *
 */
class Activity extends Model
{



    public function __construct($platform)
    {
        $this->config = Config::getEasyWechatConfig($platform);
        switch ($platform) {
            case 'wxOfficialAccount':
                $this->app    = Factory::officialAccount($this->config);
                break;
            case 'wxMiniProgram':
                $this->app    = Factory::miniProgram($this->config);
                break;
        }

    }



}