1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 | global $_W ; $_get_uid = $_GET [ 'uid' ]; $open_id = $_W [ 'fans' ][ 'tag' ][ 'openid' ]; $tpl_id = 'QKU_Q60JfbZLgjLYoKL509vj7YFVUh3uCW8vX3bbGWs' ; load()->model( 'mc' ); $acc = mc_notice_init(); $data = array ( 'first' => array ( 'value' => "您好,您的朋友已注册成功" , 'color' => '#ff510' ) , 'keyword1' => array ( 'value' => 'test name' , 'color' => '#ff510' ) , 'keyword2' => array ( 'value' => date ( 'Y-m-d' ), 'color' => '#ff510' ) , 'remark' => array ( 'value' => "您好,您的朋友已注册成功" , 'color' => '#ff510' ) ); $rt = $acc ->sendTplNotice( $open_id , $tpl_id , $data ); ################################################### $data = array ( 'first' => array ( 'value' => "尊敬的XX您好,酒店佣金已充入您的帐户!" , 'color' => '#ff510' ) , 'order' => array ( 'value' => '' , 'color' => '#ff510' ) , 'money' => array ( 'value' => '****' , 'color' => '#ff510' ) , 'remark' => array ( 'value' => "请进入会员中心进行提现操作。" , 'color' => '#ff510' ) , ); $rt = $acc ->sendTplNotice( $open_id , $tpl_id , $data ); |