setter
parent
61810a38f0
commit
f64e7696a4
|
@ -434,7 +434,7 @@ class User extends Base
|
||||||
$bgImg = $bgImg ?: app()->getRootPath().'public/static/images/poster-bg1.png';
|
$bgImg = $bgImg ?: app()->getRootPath().'public/static/images/poster-bg1.png';
|
||||||
$headimg = $account['headimgurl'] ?? app()->getRootPath().'public/static/images/icon-logo.jpg';
|
$headimg = $account['headimgurl'] ?? app()->getRootPath().'public/static/images/icon-logo.jpg';
|
||||||
$name = mb_substr($account['nickname'], 0, 4);
|
$name = mb_substr($account['nickname'], 0, 4);
|
||||||
$name = $name ?: '佩丽商城';
|
$name = $name ?: '商城';
|
||||||
// 圆形头像
|
// 圆形头像
|
||||||
$head = $this->getCircleImg($headimg, 60, 60);
|
$head = $this->getCircleImg($headimg, 60, 60);
|
||||||
$poster = (string) ImageManagerStatic::make($bgImg)
|
$poster = (string) ImageManagerStatic::make($bgImg)
|
||||||
|
|
|
@ -75,7 +75,7 @@ class Index extends Base
|
||||||
{
|
{
|
||||||
$res = [];
|
$res = [];
|
||||||
$res['homeInfo'] = ['title' => '控制台', 'href' => "manager/index/dashboard"];
|
$res['homeInfo'] = ['title' => '控制台', 'href' => "manager/index/dashboard"];
|
||||||
$res['logoInfo'] = ['title' => '佩丽商城', 'href' => "", 'image' => '/static/manager/image/logo.png'];
|
$res['logoInfo'] = ['title' => '商城', 'href' => "", 'image' => '/static/manager/image/logo.png'];
|
||||||
|
|
||||||
$menus = CmsRepository::getInstance()->getMenuList(Menu::TYPE_MENU, Menu::SHOW_YES)->toArray();
|
$menus = CmsRepository::getInstance()->getMenuList(Menu::TYPE_MENU, Menu::SHOW_YES)->toArray();
|
||||||
$userId = $this->auth['user_id'] ?? 0;
|
$userId = $this->auth['user_id'] ?? 0;
|
||||||
|
|
|
@ -13,7 +13,7 @@ use think\facade\Log;
|
||||||
|
|
||||||
class Sms
|
class Sms
|
||||||
{
|
{
|
||||||
public const SMS_SIGN = '佩丽商城';
|
public const SMS_SIGN = '商城';
|
||||||
|
|
||||||
// 会员注册模版
|
// 会员注册模版
|
||||||
public const TEMPLATE_REGISTER_CODE = 'SMS_187934108';
|
public const TEMPLATE_REGISTER_CODE = 'SMS_187934108';
|
||||||
|
@ -53,7 +53,7 @@ class Sms
|
||||||
* @param array $args
|
* @param array $args
|
||||||
* args = [
|
* args = [
|
||||||
* 'phoneNumberJson' => '["135411****","1xxxx"]',
|
* 'phoneNumberJson' => '["135411****","1xxxx"]',
|
||||||
* 'signNameJson' => '["佩丽商城","恒美会"]',
|
* 'signNameJson' => '["商城","恒美会"]',
|
||||||
* 'templateCode' => 'SMS_187934108',
|
* 'templateCode' => 'SMS_187934108',
|
||||||
* 'templateParamJson' => '[{"code":"12345"},{"code":"3333"}]'
|
* 'templateParamJson' => '[{"code":"12345"},{"code":"3333"}]'
|
||||||
* ]
|
* ]
|
||||||
|
@ -66,7 +66,7 @@ class Sms
|
||||||
//注意格式
|
//注意格式
|
||||||
// $args = [
|
// $args = [
|
||||||
// 'phoneNumberJson' => '["13541194069"]',
|
// 'phoneNumberJson' => '["13541194069"]',
|
||||||
// 'signNameJson' => '["佩丽商城"]',
|
// 'signNameJson' => '["商城"]',
|
||||||
// 'templateCode' => 'SMS_187934108',
|
// 'templateCode' => 'SMS_187934108',
|
||||||
// 'templateParamJson' => '[{"code":"12345"}]'
|
// 'templateParamJson' => '[{"code":"12345"}]'
|
||||||
// ];
|
// ];
|
||||||
|
@ -90,14 +90,14 @@ class Sms
|
||||||
* @param string $phone 手机号
|
* @param string $phone 手机号
|
||||||
* @param array $args 参数 如['code' => '3333', 'other' => 'other value'];
|
* @param array $args 参数 如['code' => '3333', 'other' => 'other value'];
|
||||||
* @param string $templateId 模版 默认注册验证码模版
|
* @param string $templateId 模版 默认注册验证码模版
|
||||||
* @param string $signName 标签 默认 佩丽商城
|
* @param string $signName 标签 默认 商城
|
||||||
* @return bool|string
|
* @return bool|string
|
||||||
*/
|
*/
|
||||||
public static function send(string $phone, array $args, string $templateId = self::TEMPLATE_REGISTER_CODE, string $signName = self::SMS_SIGN)
|
public static function send(string $phone, array $args, string $templateId = self::TEMPLATE_REGISTER_CODE, string $signName = self::SMS_SIGN)
|
||||||
{
|
{
|
||||||
// $args = [
|
// $args = [
|
||||||
// 'phoneNumbers' => '13541194069',
|
// 'phoneNumbers' => '13541194069',
|
||||||
// 'signName' => '佩丽商城',
|
// 'signName' => '商城',
|
||||||
// 'templateCode' => 'SMS_187934108',
|
// 'templateCode' => 'SMS_187934108',
|
||||||
// 'templateParam' => '{"code":"66666","other":"other value"}'
|
// 'templateParam' => '{"code":"66666","other":"other value"}'
|
||||||
// ];
|
// ];
|
||||||
|
|
|
@ -424,7 +424,7 @@ trait AccountMessageTrait
|
||||||
// ['template_id' => '模版ID', 'msg' => msgBody]
|
// ['template_id' => '模版ID', 'msg' => msgBody]
|
||||||
$data = [
|
$data = [
|
||||||
'phoneNumberJson' => '', // 如'["13541194xxxx"]'
|
'phoneNumberJson' => '', // 如'["13541194xxxx"]'
|
||||||
'signNameJson' => '',// 如 '["佩丽商城","佩丽商城"]'
|
'signNameJson' => '',// 如 '["商城","商城"]'
|
||||||
'templateCode' => '',
|
'templateCode' => '',
|
||||||
'templateParamJson' => '', //如 '[{"code":"12345"},{"code":"333"}]'
|
'templateParamJson' => '', //如 '[{"code":"12345"},{"code":"333"}]'
|
||||||
];
|
];
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 47 KiB After Width: | Height: | Size: 1.6 KiB |
Loading…
Reference in New Issue