Commit b31b06e8 authored by 刘小敏's avatar 刘小敏

3D试戴订阅消息修正 优化

parent e8ae0a3b
...@@ -48,15 +48,10 @@ class AiVideoSuccess extends Notification ...@@ -48,15 +48,10 @@ class AiVideoSuccess extends Notification
'WechatMiniProgram' => [ 'WechatMiniProgram' => [
'category_id' => 670, 'category_id' => 670,
'tid' => '', // 需要在后台配置模板ID 'tid' => '', // 需要在后台配置模板ID
'kid' => [1,2], 'kid' => [1,2,3],
'scene_desc' => 'AI视频生成成功通知用户', 'scene_desc' => '3D试戴成功通知用户',
'fields' => [ 'fields' => [
[ [
"name" => "视频状态",
"field" => "status",
"template_field" => "character_string1",
],
[
"name" => "生成时间", "name" => "生成时间",
"field" => "createtime", "field" => "createtime",
"template_field" => "time3", "template_field" => "time3",
...@@ -77,7 +72,7 @@ class AiVideoSuccess extends Notification ...@@ -77,7 +72,7 @@ class AiVideoSuccess extends Notification
// 返回的字段列表 // 返回的字段列表
public $returnField = [ public $returnField = [
'name' => 'AI视频生成成功通知', 'name' => '3D试戴成功通知',
'channels' => ['Sms', 'Email', 'WechatOfficialAccount', 'WechatMiniProgram'], 'channels' => ['Sms', 'Email', 'WechatOfficialAccount', 'WechatMiniProgram'],
'fields' => [ 'fields' => [
['name' => '消息名称', 'field' => 'template'], ['name' => '消息名称', 'field' => 'template'],
......
...@@ -45,7 +45,7 @@ class Ai ...@@ -45,7 +45,7 @@ class Ai
$user && $user->notify( $user && $user->notify(
new AiVideoSuccess([ new AiVideoSuccess([
'ai_tryon' => $aiTryon ? $aiTryon->toArray() : [], 'ai_tryon' => $aiTryon ? $aiTryon->toArray() : [],
'user' => $aiTryon ? $user->toArray() : [] 'user' => $user ? $user->toArray() : []
]) ])
); );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment