title = '小程序配置'; $this->params['breadcrumbs'][] = ['label' => $this->title]; ?>
= $form->field($model, 'wechat_mini_app_id')->textInput(); ?> = $form->field($model, 'wechat_mini_secret')->textInput()->hint('AppID(小程序ID)和AppSecret(小程序密钥)来自于您申请的小程序账号,使用小程序账号密码登录公众平台,在开发->开发设置中可以找到'); ?>开发设置
服务器配置信息
= $form->field($model, 'wechat_mini_token')->widget(\common\widgets\input\SecretKeyInput::class, [ 'number' => 32, ])->hint('必须为英文或者数字,长度为3到32个字符. 请妥善保管, Token 泄露将可能被窃取或篡改平台的操作数据'); ?> = $form->field($model, 'wechat_mini_encodingaeskey')->widget(\common\widgets\input\SecretKeyInput::class, [ 'number' => 43, ])->hint('必须为英文或者数字,长度为43个字符. 请妥善保管, EncodingAESKey 泄露将可能被窃取或篡改平台的操作数据'); ?> wechat_mini_url = Url::toApi(['receive-message/index']) ?> = $form->field($model, 'wechat_mini_url')->textInput([ 'readonly' => true ])->hint('配置地址: 小程序后台 > 开发设置 > 消息推送'); ?>消息推送设置