|
@@ -74,16 +74,16 @@ class UserSpread extends BaseModel
|
|
|
$openid = WechatUser::where('uid', $spread_uid)->value('openid');
|
|
$openid = WechatUser::where('uid', $spread_uid)->value('openid');
|
|
|
if (!empty($openid)){
|
|
if (!empty($openid)){
|
|
|
$group = [
|
|
$group = [
|
|
|
- 'first' => '亲,您的订单已发货,请注意查收',
|
|
|
|
|
|
|
+ 'first' => '下级用户绑定成功通知',
|
|
|
'remark' => '点击查看订单详情'
|
|
'remark' => '点击查看订单详情'
|
|
|
];
|
|
];
|
|
|
$group = array_merge($group, [
|
|
$group = array_merge($group, [
|
|
|
- 'thing1' => $user['nickname'], //用户姓名
|
|
|
|
|
|
|
+// 'thing1' => $user['nickname'], //用户姓名
|
|
|
// 'character_string2' => $order['pay_type'] == 'offline' ? '线下支付' : date('Y/m/d H:i', $order['pay_time']),
|
|
// 'character_string2' => $order['pay_type'] == 'offline' ? '线下支付' : date('Y/m/d H:i', $order['pay_time']),
|
|
|
// 'phone_number21' => $order['user_address'],
|
|
// 'phone_number21' => $order['user_address'],
|
|
|
// 'phone_number21' => '15356590576',
|
|
// 'phone_number21' => '15356590576',
|
|
|
'character_string7' => $user['account'], //用户账号
|
|
'character_string7' => $user['account'], //用户账号
|
|
|
- 'time4' => time(), //绑定时间
|
|
|
|
|
|
|
+ 'time3' => time(), //绑定时间
|
|
|
]);
|
|
]);
|
|
|
@file_put_contents('quanju.txt', json_encode($group)."-模版消息3\r\n", 8);
|
|
@file_put_contents('quanju.txt', json_encode($group)."-模版消息3\r\n", 8);
|
|
|
$res= WechatTemplateService::sendTemplate($openid, WechatTemplateService::SUBORDINATE_BINDING, $group, '');
|
|
$res= WechatTemplateService::sendTemplate($openid, WechatTemplateService::SUBORDINATE_BINDING, $group, '');
|