|
@@ -77,7 +77,7 @@ class Apply extends Model
|
|
|
/**
|
|
|
* 微信模板消息通知(访客到访)
|
|
|
*/
|
|
|
- public static function wxVisitorMessage($user_name,$time,$nid){
|
|
|
+ public static function wxVisitorMessage($user_name,$nid,$time){
|
|
|
$user_info = User::get(['id'=>$nid]);
|
|
|
$data = [
|
|
|
'thing1'=>[
|
|
@@ -87,7 +87,6 @@ class Apply extends Model
|
|
|
'value'=>$time
|
|
|
],
|
|
|
];
|
|
|
- var_dump($user_info['open_id']);exit();
|
|
|
(new \app\api\controller\Common())->sendWechatMessage($user_info['open_id'],'KOWDFd4MsuxROCPCLNZF5k5LHzM_-o-WoEI2NpfQYx0',$data,'https://'.$_SERVER['HTTP_HOST'].'/h5/#/pages/xiaoxi/look-me');
|
|
|
}
|
|
|
|