Plugin Directory

Changeset 2638221


Ignore:
Timestamp:
12/01/2021 06:29:55 PM (4 years ago)
Author:
hellobeebee
Message:

修复订阅无法到达

Location:
beebee-mini/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • beebee-mini/trunk/bee-include/include/notices.php

    r2637401 r2638221  
    317317// }
    318318
    319 if( defined('MINI_PROGRAM_API_PLUGIN')&&wp_miniprogram_option('update') ) {
     319if( defined('MINI_PROGRAM_API_PLUGIN')&&wp_miniprogram_option('update_tpl_id')!='') {
    320320    add_action('publish_post', 'wp_bee_post_update_notice_event');
    321321    add_action('publish_beebee_topic', 'wp_bee_post_update_notice_event');
     
    323323    add_action('publish_beebee_quot', 'wp_bee_post_update_notice_event');
    324324    add_action('publish_lesson', 'wp_bee_post_update_notice_event');
    325     add_action('publish_to_publish', function () {
    326         remove_action('publish_post', 'wp_bee_post_update_notice_event');
     325    add_action('publish_to_publish', function () {
     326        remove_action('publish_post', 'wp_bee_post_update_notice_event');
    327327        remove_action('publish_beebee_library', 'wp_bee_post_update_notice_event');
    328328        remove_action('publish_beebee_topic', 'wp_bee_post_update_notice_event');
    329329        remove_action('publish_beebee_quot', 'wp_bee_post_update_notice_event');
    330330        remove_action('publish_beebee_quot', 'wp_bee_post_update_notice_event');
    331     },11,1);
     331    },11,1);
    332332}
     333
    333334
    334335function wp_bee_post_update_notice_event( $post_id ) {
     
    361362    // $page = "/pages/detail/detail?id=".$post_id;
    362363    if($type=='post') {
    363         $page = "/pagesB/single/single?id=".$post_id."&isshare=1&posttype=posts&pagetype=single";
     364        // $page = "/pagesB/single/single?id=".$post_id."&isshare=1&posttype=posts&pagetype=single";
     365        $page = "/pages/index/index?gotourl=/pagesB/single/single&id=".$post_id."&isshare=1&posttype=posts&pagetype=single";
    364366    }else if($type) {
    365         $page = "/pagesB/single/single?id=".$post_id."&isshare=1&posttype=".$type."&pagetype=single";
     367        // $page = "/pages/index/index?page/pagesB/single/single?id=".$post_id."&isshare=1&posttype=".$type."&pagetype=single";
     368        $page = "/pages/index/index?gotourl=/pagesB/single/single&id=".$post_id."&isshare=1&posttype=".$type."&pagetype=single";
    366369    } else {
    367370        $page = "/pages/index/index";
     
    377380        "thing1"    => array( "value" => '内容更新' ),
    378381        "thing2"    => array( "value" => html_entity_decode( $title ) ),
    379         "thing3"    => array( "value" => html_entity_decode( $content ) )
     382        "thing3"    => array( "value" => html_entity_decode( $content?$content:'点击查看内容' ) )
    380383    );
    381384    foreach( $subscriber as $subscribe ) {
  • beebee-mini/trunk/readme.txt

    r2637401 r2638221  
    55Requires at least: 5.5
    66Tested up to: 5.8.1
    7 Stable tag: 1.1.0
     7Stable tag: 1.1.1
    88Requires PHP: 5.6
    99License: GPLv2 or later
     
    6060
    6161** 公众号【APP比比】是小程序的唯一发行渠道,任何其他渠道需要你付费购买的均为盗版。
     62
     63= 1.1.1 - 2021-12-2 =
     64修复了订阅任务提示模板不正确问题。
    6265
    6366= 1.1.0 - 2021-11-30 =
  • beebee-mini/trunk/wp-mini-beebee.php

    r2637401 r2638221  
    44Plugin URI: https://demo.appbeebee.com/
    55Description: 这里有很多漂亮的原创的微信小程序模板,完全基于开源的程序打造。关注公众号【APP比比】进行配置教程的学习。
    6 Version: 1.1.0
     6Version: 1.1.1
    77Author:  hellobeebee
    88Author URI: https://www.appbeebee.com/
Note: See TracChangeset for help on using the changeset viewer.