Skip to content

Commit

Permalink
encodingAesKey
Browse files Browse the repository at this point in the history
  • Loading branch information
callmez committed Jun 6, 2015
1 parent 6ff2981 commit 61257b1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion components/MpWechat.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ public function __construct(Wechat $wechat, $config = [])
$config = array_merge([
'appId' => $this->model->key,
'appSecret' => $this->model->secret,
'token' => $this->model->token
'token' => $this->model->token,
'encodingAesKey' => $this->model->encoding_aes_key
], $config);

parent::__construct($config);
Expand Down
2 changes: 1 addition & 1 deletion models/Wechat.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public static function tableName()
public function rules()
{
return [
[['name', 'account', 'original', 'type', 'token', 'key', 'secret', 'avatar', 'qrcode'], 'required', 'except' => ['avatarUpload', 'qrcodeUpload']],
[['name', 'account', 'original', 'type', 'token', 'key', 'secret', 'encoding_aes_key', 'avatar', 'qrcode'], 'required', 'except' => ['avatarUpload', 'qrcodeUpload']],
[['type', 'status'], 'integer', 'except' => ['avatarUpload', 'qrcodeUpload']],
[['name', 'original', 'username'], 'string', 'max' => 40, 'except' => ['avatarUpload', 'qrcodeUpload']],
[['token', 'password'], 'string', 'max' => 32, 'except' => ['avatarUpload', 'qrcodeUpload']],
Expand Down

0 comments on commit 61257b1

Please sign in to comment.