1, 'msg' => '公众号模板消息未完成' ]; } return $res; } /** * @description: 订单支付通知 订单编号、支付金额、支付时间、商品名称 * @return {*} */ public static function order_pay($type, $template_id) { if ($type == 'miapp') { $res = NoticeAction::getTamplateId(516, [1, 5, 15, 3], '订单支付通知', $template_id, $type); if ($res['code'] == 0) { $res['kid_list'] = ['character_string1', 'amount5', 'time15', 'thing3']; } } else { $res = NoticeAction::getTamplateId(1142, [1, 2, 7, 6], '订单支付通知', $template_id, $type); if ($res['code'] == 0) { $res['kid_list'] = ['character_string1', 'amount2', 'date7', 'thing6']; } } return $res; } /** * @description: 订单取消通知 订单编号、订单金额、商品名称、取消时间 * @return {*} */ public static function order_cancel($type, $template_id) { if ($type == 'miapp') { $res = NoticeAction::getTamplateId(1190, [2, 3, 1, 7], '订单取消通知', $template_id, $type); if ($res['code'] == 0) { $res['kid_list'] = ['character_string2', 'amount3', 'thing1', 'time7']; } } else { $res = NoticeAction::getTamplateId(7456, [4, 9, 8, 3], '订单取消通知', $template_id, $type); if ($res['code'] == 0) { $res['kid_list'] = ['character_string4', 'amount9', 'thing8', 'time3']; } } return $res; } /** * @description: 订单退款通知 订单编号、退款金额、退货商品、备注 * @return {*} */ public static function order_refund($type, $template_id) { if (1 || $type == 'miapp') { $res = NoticeAction::getTamplateId(9244, [4, 3, 6, 5], '订单退款通知', $template_id, $type); if ($res['code'] == 0) { $res['kid_list'] = ['character_string4', 'amount3', 'thing6', 'thing5']; } } else { $res = [ 'code' => 1, 'msg' => '公众号模板消息未完成' ]; } return $res; } /** * @description: 订单发货通知 订单编号、商品详情、快递公司、快递单号 * @return {*} */ public static function order_send($type, $template_id) { if ($type == 'miapp') { $res = NoticeAction::getTamplateId(467, [1, 2, 3, 4], '订单发货通知', $template_id, $type); if ($res['code'] == 0) { $res['kid_list'] = ['character_string1', 'thing2', 'name3', 'character_string4']; } } else { $res = NoticeAction::getTamplateId(4231, [1, 13, 7, 8], '订单发货通知', $template_id, $type); if ($res['code'] == 0) { $res['kid_list'] = ['character_string1', 'thing13', 'thing7', 'character_string8']; } } return $res; } /** * @description: 门店到货通知 商品名称、温馨提示、到货时间、取货地址 * @return {*} */ public static function shop_arrive($type, $template_id) { if (1 || $type == 'miapp') { $res = NoticeAction::getTamplateId(5019, [1, 2, 6, 7], '门店到货通知', $template_id, $type); if ($res['code'] == 0) { $res['kid_list'] = ['thing1', 'thing2', 'date6', 'thing7']; } } else { $res = [ 'code' => 1, 'msg' => '公众号模板消息未完成' ]; } return $res; } /** * @description: 订单自提通知 自提门店、门店地址、订单编号、联系电话 * @return {*} */ public static function shop_offline($type, $template_id) { if (1 || $type == 'miapp') { $res = NoticeAction::getTamplateId(1093, [2, 3, 7, 5], '订单自提通知', $template_id, $type); if ($res['code'] == 0) { $res['kid_list'] = ['thing2', 'thing3', 'character_string7', 'phone_number5']; } } else { $res = [ 'code' => 1, 'msg' => '公众号模板消息未完成' ]; } return $res; } /** * @description: 账户变动通知 变动金额、时间、备注、账户余额 * @return {*} */ public static function user_chang($type, $template_id) { if (1 || $type == 'miapp') { $res = NoticeAction::getTamplateId(4148, [1, 4, 5, 2], '账户变动通知', $template_id, $type); if ($res['code'] == 0) { $res['kid_list'] = ['amount1', 'date4', 'thing5', 'amount2']; } } else { $res = [ 'code' => 1, 'msg' => '公众号模板消息未完成' ]; } return $res; } /** * @description: 提现成功通知 提现金额、提现状态、提现方式、手续费 * @return {*} */ public static function cash_success($type, $template_id) { if ($type == 'miapp') { $res = NoticeAction::getTamplateId(7712, [1, 2, 4, 5], '提现成功通知', $template_id, $type); if ($res['code'] == 0) { $res['kid_list'] = ['amount1', 'phrase2', 'phrase4', 'amount5']; } } else { $res = NoticeAction::getTamplateId(1470, [2, 1, 11, 7], '提现成功通知', $template_id, $type); if ($res['code'] == 0) { $res['kid_list'] = ['amount2', 'thing1', 'thing11', 'amount7']; } } return $res; } /** * @description: 提现失败通知 提现金额、原因、提现方式 * @return {*} */ public static function cash_fail($type, $template_id) { if ($type == 'miapp') { $res = NoticeAction::getTamplateId(5834, [1, 2, 3], '提现失败通知', $template_id, $type); if ($res['code'] == 0) { $res['kid_list'] = ['amount1', 'phrase2', 'phrase3']; } } else { $res = NoticeAction::getTamplateId(1470, [1, 12, 2, 11], '提现失败通知', $template_id, $type); if ($res['code'] == 0) { $res['kid_list'] = ['thing1', 'thing12', 'amount2', 'thing11']; } } return $res; } /** * @description: 审核结果通知 分销商名称、审核时间、申请状态、备注信息 * @return {*} */ public static function share_examine($type, $template_id) { if ($type == 'miapp') { $res = NoticeAction::getTamplateId(6682, [5, 3, 2, 4], '审核结果通知', $template_id, $type); if ($res['code'] == 0) { $res['kid_list'] = ['thing5', 'date3', 'phrase2', 'thing4']; } } else { $res = NoticeAction::getTamplateId(4082, [10, 3, 1, 5], '审核结果通知', $template_id, $type); if ($res['code'] == 0) { $res['kid_list'] = ['thing10', 'date3', 'phrase1', 'thing5']; } } return $res; } /** * @description: 拼团成功通知 订单号、商品名称、成团时间、备注 * @return {*} */ public static function pt_success($type, $template_id) { if (1 || $type == 'miapp') { $res = NoticeAction::getTamplateId(3098, [10, 7, 8, 9], '拼团成功通知', $template_id, $type); if ($res['code'] == 0) { $res['kid_list'] = ['character_string10', 'thing7', 'date8', 'thing9']; } } else { $res = [ 'code' => 1, 'msg' => '公众号模板消息未完成' ]; } return $res; } /** * @description: 拼团失败通知 订单号、商品金额、商品名称、失败原因 * @return {*} */ public static function pt_fail($type, $template_id) { if (1 || $type == 'miapp') { $res = NoticeAction::getTamplateId(4534, [7, 8, 1, 6], '拼团失败通知', $template_id, $type); if ($res['code'] == 0) { $res['kid_list'] = ['character_string7', 'amount8', 'thing1', 'thing6']; } } else { $res = [ 'code' => 1, 'msg' => '公众号模板消息未完成' ]; } return $res; } /** * @description: 入驻商申请通知 商户名称、审核结果、入驻时间、备注 * @return {*} */ public static function mch_examine($type, $template_id) { if (1 || $type == 'miapp') { $res = NoticeAction::getTamplateId(9840, [1, 2, 3, 4], '入驻商申请通知', $template_id, $type); if ($res['code'] == 0) { $res['kid_list'] = ['thing1', 'phrase2', 'time3', 'thing4']; } } else { $res = [ 'code' => 1, 'msg' => '公众号模板消息未完成' ]; } return $res; } public static function adopt_mature($type, $template_id) { if (1 || $type == 'miapp') { $res = NoticeAction::getTamplateId(3115, [4, 3, 15, 5], '未选择采摘超时提示通知', $template_id, $type); if ($res['code'] == 0) { $res['kid_list'] = ['character_string4', 'thing3', 'thing15', 'time5']; } } else { $res = [ 'code' => 1, 'msg' => '公众号模板消息未完成' ]; } return $res; } public static function adopt_storage($type, $template_id) { if (1 || $type == 'miapp') { $res = NoticeAction::getTamplateId(3115, [4, 3, 15, 5], '未选择保管超时提示通知', $template_id, $type); if ($res['code'] == 0) { $res['kid_list'] = ['character_string4', 'thing3', 'thing15', 'time5']; } } else { $res = [ 'code' => 1, 'msg' => '公众号模板消息未完成' ]; } return $res; } public static function adopt_preserve($type, $template_id) { if (1 || $type == 'miapp') { $res = NoticeAction::getTamplateId(3115, [4, 3, 15, 5], '免费保管到期提示通知', $template_id, $type); if ($res['code'] == 0) { $res['kid_list'] = ['character_string4', 'thing3', 'thing15', 'time5']; } } else { $res = [ 'code' => 1, 'msg' => '公众号模板消息未完成' ]; } return $res; } public static function adopt_order_confirm_mature($type, $template_id) { if (1 || $type == 'miapp') { $res = NoticeAction::getTamplateId(3115, [4, 3, 15, 5], '确认成熟提示通知', $template_id, $type); if ($res['code'] == 0) { $res['kid_list'] = ['character_string4', 'thing3', 'thing15', 'time5']; } } else { $res = [ 'code' => 1, 'msg' => '公众号模板消息未完成' ]; } return $res; } public static function adopt_order_self_pick($type, $template_id) { if (1 || $type == 'miapp') { $res = NoticeAction::getTamplateId(3115, [4, 3, 15, 5], '自采提示通知', $template_id, $type); if ($res['code'] == 0) { $res['kid_list'] = ['character_string4', 'thing3', 'thing15', 'time5']; } } else { $res = [ 'code' => 1, 'msg' => '公众号模板消息未完成' ]; } return $res; } public static function adopt_order_other_pick($type, $template_id) { if (1 || $type == 'miapp') { $res = NoticeAction::getTamplateId(3115, [4, 3, 15, 5], '代采提示通知', $template_id, $type); if ($res['code'] == 0) { $res['kid_list'] = ['character_string4', 'thing3', 'thing15', 'time5']; } } else { $res = [ 'code' => 1, 'msg' => '公众号模板消息未完成' ]; } return $res; } public static function adopt_order_confirm_self_pick_book($type, $template_id) { if (1 || $type == 'miapp') { $res = NoticeAction::getTamplateId(3115, [4, 3, 15, 5], '确认自采预约提示通知', $template_id, $type); if ($res['code'] == 0) { $res['kid_list'] = ['character_string4', 'thing3', 'thing15', 'time5']; } } else { $res = [ 'code' => 1, 'msg' => '公众号模板消息未完成' ]; } return $res; } public static function adopt_order_start_self_pick($type, $template_id) { if (1 || $type == 'miapp') { $res = NoticeAction::getTamplateId(3115, [4, 3, 15, 5], '开始自采提示通知', $template_id, $type); if ($res['code'] == 0) { $res['kid_list'] = ['character_string4', 'thing3', 'thing15', 'time5']; } } else { $res = [ 'code' => 1, 'msg' => '公众号模板消息未完成' ]; } return $res; } public static function adopt_order_end_self_pick($type, $template_id) { if (1 || $type == 'miapp') { $res = NoticeAction::getTamplateId(3115, [4, 3, 15, 5], '自采结束提示通知', $template_id, $type); if ($res['code'] == 0) { $res['kid_list'] = ['character_string4', 'thing3', 'thing15', 'time5']; } } else { $res = [ 'code' => 1, 'msg' => '公众号模板消息未完成' ]; } return $res; } public static function adopt_order_confirm_self_pick_finish($type, $template_id) { if (1 || $type == 'miapp') { $res = NoticeAction::getTamplateId(3115, [4, 3, 15, 5], '确认自采完成提示通知', $template_id, $type); if ($res['code'] == 0) { $res['kid_list'] = ['character_string4', 'thing3', 'thing15', 'time5']; } } else { $res = [ 'code' => 1, 'msg' => '公众号模板消息未完成' ]; } return $res; } public static function adopt_order_pick_take($type, $template_id) { if (1 || $type == 'miapp') { $res = NoticeAction::getTamplateId(3115, [4, 3, 15, 5], '带走提示通知', $template_id, $type); if ($res['code'] == 0) { $res['kid_list'] = ['character_string4', 'thing3', 'thing15', 'time5']; } } else { $res = [ 'code' => 1, 'msg' => '公众号模板消息未完成' ]; } return $res; } public static function adopt_order_storage($type, $template_id) { if (1 || $type == 'miapp') { $res = NoticeAction::getTamplateId(3115, [4, 3, 15, 5], '入库提示通知', $template_id, $type); if ($res['code'] == 0) { $res['kid_list'] = ['character_string4', 'thing3', 'thing15', 'time5']; } } else { $res = [ 'code' => 1, 'msg' => '公众号模板消息未完成' ]; } return $res; } public static function adopt_order_confirm_storage($type, $template_id) { if (1 || $type == 'miapp') { $res = NoticeAction::getTamplateId(3115, [4, 3, 15, 5], '确认入库提示通知', $template_id, $type); if ($res['code'] == 0) { $res['kid_list'] = ['character_string4', 'thing3', 'thing15', 'time5']; } } else { $res = [ 'code' => 1, 'msg' => '公众号模板消息未完成' ]; } return $res; } public static function adopt_order_preserve($type, $template_id) { if (1 || $type == 'miapp') { $res = NoticeAction::getTamplateId(3115, [4, 3, 15, 5], '保管提示通知', $template_id, $type); if ($res['code'] == 0) { $res['kid_list'] = ['character_string4', 'thing3', 'thing15', 'time5']; } } else { $res = [ 'code' => 1, 'msg' => '公众号模板消息未完成' ]; } return $res; } public static function adopt_order_no_preserve($type, $template_id) { if (1 || $type == 'miapp') { $res = NoticeAction::getTamplateId(3115, [4, 3, 15, 5], '不保管提示通知', $template_id, $type); if ($res['code'] == 0) { $res['kid_list'] = ['character_string4', 'thing3', 'thing15', 'time5']; } } else { $res = [ 'code' => 1, 'msg' => '公众号模板消息未完成' ]; } return $res; } public static function adopt_order_finish($type, $template_id) { if (1 || $type == 'miapp') { $res = NoticeAction::getTamplateId(3115, [4, 3, 15, 5], '认养完成提示通知', $template_id, $type); if ($res['code'] == 0) { $res['kid_list'] = ['character_string4', 'thing3', 'thing15', 'time5']; } } else { $res = [ 'code' => 1, 'msg' => '公众号模板消息未完成' ]; } return $res; } public static function adopt_order_other_pick_pay($type, $template_id) { if (1 || $type == 'miapp') { $res = NoticeAction::getTamplateId(3115, [4, 3, 15, 5], '支付代采费用提示通知', $template_id, $type); if ($res['code'] == 0) { $res['kid_list'] = ['character_string4', 'thing3', 'thing15', 'time5']; } } else { $res = [ 'code' => 1, 'msg' => '公众号模板消息未完成' ]; } return $res; } /** * @description: 收到客户新订单通知 订单号、金额、商品信息、下单时间 * @return {*} */ public static function place_order($type, $template_id) { if ($type == 'miapp') { $res = [ 'code' => 1, 'msg' => '小程序模板消息未完成' ]; }elseif ($type == 'wxaapi') { $res = NoticeAction::getTamplateId(48089, [1, 15, 7, 2], '收到客户新订单通知', $template_id, $type); if ($res['code'] == 0) { $res['kid_list'] = ['character_string1', 'amount15', 'thing7', 'time2']; } } else { $res = [ 'code' => 1, 'msg' => '模板消息未完成' ]; } return $res; } /** * @description: 直播开播提醒 直播主题、直播方、开播时间 * @return {*} */ public static function live_begin($type, $template_id) { if (1 || $type == 'miapp') { $res = NoticeAction::getTamplateId(9169, [1, 5, 2], '直播开播提醒', $template_id, $type); if ($res['code'] == 0) { $res['kid_list'] = ['thing1', 'thing5', 'time2']; } } else { $res = [ 'code' => 1, 'msg' => '公众号模板消息未完成' ]; } return $res; } /** * @description: 产品降价提醒 产品名称、下降金额、降后价格 * @return {*} */ public static function lowering_price($type, $template_id) { if (1 || $type == 'miapp') { $res = NoticeAction::getTamplateId(40919, [1, 2, 3], '产品降价提醒', $template_id, $type); if ($res['code'] == 0) { $res['kid_list'] = ['thing1', 'amount2', 'amount3']; } } else { $res = [ 'code' => 1, 'msg' => '公众号模板消息未完成' ]; } return $res; } /* begin 2025/07/10 19:52:44 WPing丶 */ /** * @description: 服务人员抢单通知 订单号、下单时间、收货地址、订单金额 * @return {*} */ public static function service_new_order($type, $template_id) { if ($type == 'miapp') { $res = [ 'code' => 1, 'msg' => '小程序模板消息未完成' ]; }elseif ($type == 'wxaapi') { $res = NoticeAction::getTamplateId(44298, [2, 6, 5], '收到客户新订单通知', $template_id, $type); if ($res['code'] == 0) { $res['kid_list'] = ['character_string2', 'time6', 'amount5']; } } else { $res = [ 'code' => 1, 'msg' => '模板消息未完成' ]; } return $res; } /** * @description: 服务人员接到新订单通知 订单号、金额、商品信息、下单时间 * @return {*} */ public static function service_receive_order($type, $template_id) { if ($type == 'miapp') { $res = [ 'code' => 1, 'msg' => '小程序模板消息未完成' ]; }elseif ($type == 'wxaapi') { $res = NoticeAction::getTamplateId(48089, [1, 15, 7, 2], '收到客户新订单通知', $template_id, $type); if ($res['code'] == 0) { $res['kid_list'] = ['character_string1', 'amount15', 'thing7', 'time2']; } } else { $res = [ 'code' => 1, 'msg' => '模板消息未完成' ]; } return $res; } /* end */ }