1
0
mirror of https://gitee.com/koogua/course-tencent-cloud.git synced 2025-06-28 13:21:37 +08:00
koogua 0336a54911 1.源文件增加版权信息
2.群组状态和课程协同
2021-06-13 15:49:47 +08:00

43 lines
1.2 KiB
PHP

<?php
/**
* @copyright Copyright (c) 2021 深圳市酷瓜软件有限公司
* @license https://opensource.org/licenses/GPL-2.0
* @link https://www.koogua.com
*/
namespace App\Services\Logic\Notice\WeChat;
use App\Models\WeChatSubscribe as WeChatSubscribeModel;
use App\Services\WeChatNotice;
class RefundFinish extends WeChatNotice
{
protected $templateCode = 'refund_finish';
/**
* @param WeChatSubscribeModel $subscribe
* @param array $params
* @return bool
*/
public function handle(WeChatSubscribeModel $subscribe, array $params)
{
$first = '退款已处理完成!';
$remark = '感谢您的支持,有疑问请联系客服哦!';
$params = [
'first' => $first,
'remark' => $remark,
'keyword1' => $params['refund']['sn'],
'keyword2' => $params['refund']['subject'],
'keyword3' => sprintf('%s元', $params['refund']['amount']),
'keyword4' => date('Y-m-d H:i', $params['refund']['update_time']),
];
$templateId = $this->getTemplateId($this->templateCode);
return $this->send($subscribe->open_id, $templateId, $params);
}
}