You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
395 B
22 lines
395 B
<?php |
|
/** |
|
* Created by IntelliJ IDEA. |
|
* User: luwei |
|
* Date: 2017/7/5 |
|
* Time: 16:01 |
|
*/ |
|
|
|
namespace app\modules\api\models; |
|
|
|
use luweiss\wechat\Wechat; |
|
|
|
class Model extends \app\models\Model |
|
{ |
|
/** |
|
* @return Wechat |
|
*/ |
|
public function getWechat() |
|
{ |
|
return isset(\Yii::$app->controller->wechat) ? \Yii::$app->controller->wechat : null; |
|
} |
|
}
|
|
|