source/model/weixin.model.php
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php
class weixinModel extends model{
public function __construct (){
parent::__construct ();
$this->table="weixin";
}
public function id_list($option=array(),&$rscount=false){
$data=$this->select($option,$rscount);
if($data){
foreach($data as $k=>$v){
$t_d[$v['id']]=$v;
}
return $t_d;
}
}
/*
$json=array(
"touser"=>"oMrliwPpsCCr_DNuBG4lQAHafugQ",
"template_id"=>"HExcAkt25-GPrqoJXrk91_luGk5bMyvhElMAwUEJQfI",
"url"=>"http://weixin.qq.com/download",
"data"=>array(
"first"=>array("value"=>"尊敬的张三先生,您好!您认购的《资金信托计划》已确认认购成功,详情如下:"),
"type"=>array("value"=>"bbb"),
"share"=>array("value"=>"ccccccc"),
"remark"=>array("value"=>"dddddd"),
)
);
*/
public function SendWeiXinMb($msg=array()){
$wx=M("weixin")->selectRow(array("where"=>"","order"=>"id DESC"));
$data=get_weixin_access_token();
$token=$data['access_token'];
$userid=$msg['userid'];
$template_id=isset($msg['template_id'])?$msg['template_id']:'';
$json=array(
"touser"=>$touser,
"template_id"=>"HExcAkt25-GPrqoJXrk91_luGk5bMyvhElMAwUEJQfI",
"url"=>"http://weixin.qq.com/download",
"data"=>array(
"first"=>array("value"=>"尊敬的张三先生,您好!您认购的《资金信托计划》已确认认购成功,详情如下:"),
"type"=>array("value"=>"bbb"),
"share"=>array("value"=>"ccccccc"),
"remark"=>array("value"=>"dddddd"),
)
);
$json=wx_mb_send($token,$msg);
}
public function checkFollow($userid){
$key="weixin_checkFollow".$userid;
if(!$res=cache()->get($key)){
$token=get_weixin_access_token();
$openLogin=M("openlogin")->selectRow("userid=".$userid." AND xfrom='weixin' ");
后面还有 27 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。