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.
23 lines
412 B
23 lines
412 B
<?php |
|
/** |
|
* Created by IntelliJ IDEA. |
|
* User: luwei |
|
* Date: 2018/3/12 |
|
* Time: 11:16 |
|
*/ |
|
|
|
namespace app\modules\user\models; |
|
|
|
use app\models\Model; |
|
use luweiss\wechat\Wechat; |
|
|
|
class UserModel extends Model |
|
{ |
|
/** |
|
* @return Wechat |
|
*/ |
|
public function getWechat() |
|
{ |
|
return empty(\Yii::$app->controller->wechat) ? null : \Yii::$app->controller->wechat; |
|
} |
|
}
|
|
|