-
Notifications
You must be signed in to change notification settings - Fork 585
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
jianyan74
committed
Mar 11, 2019
1 parent
dc133d6
commit c7ae2d9
Showing
108 changed files
with
2,479 additions
and
1,478 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,21 @@ | ||
<?php | ||
namespace backend\controllers; | ||
|
||
use common\helpers\AuthHelper; | ||
use Yii; | ||
use yii\web\UnauthorizedHttpException; | ||
use yii\filters\AccessControl; | ||
use common\helpers\AuthHelper; | ||
|
||
/** | ||
* 基类控制器 | ||
* | ||
* Class MController | ||
* @package backend\controllers | ||
* @property \yii\db\ActiveRecord $modelClass; | ||
* @property \EasyWeChat\OfficialAccount\Application $app; | ||
* @property \common\services\Application $services; | ||
* @author jianyan74 <[email protected]> | ||
*/ | ||
class MController extends \common\controllers\BaseController | ||
{ | ||
/** | ||
* 微信实例化SDK | ||
* | ||
* @var | ||
*/ | ||
protected $app; | ||
|
||
/** | ||
* 服务 | ||
* | ||
* @var | ||
*/ | ||
protected $services; | ||
|
||
/** | ||
* @throws \yii\base\InvalidConfigException | ||
*/ | ||
public function init() | ||
{ | ||
parent::init(); | ||
|
||
empty($this->app) && $this->app = Yii::$app->wechat->app; | ||
empty($this->services) && $this->services = Yii::$app->services; | ||
} | ||
|
||
/** | ||
* @return array | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ | |
/** | ||
* Class Module | ||
* @package backend\modules\member | ||
* @author jianyan74 <[email protected]> | ||
*/ | ||
class Module extends \yii\base\Module | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,4 +29,4 @@ | |
</div> | ||
</div> | ||
|
||
<?php ActiveForm::end(); ?> | ||
<?php ActiveForm::end(); ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.