[熊掌插件]梦熊掌上插件,如何访问熊掌上api提交函数[解决]

  • A+
摘要

Front/in?Becarefulinthefront/inthebow/infront百度雄茂是派驻百度生态的内容和服务提供商的认证账户,致力于帮助内容提供商和服务提供商方便、高效地连接整个网络用户,充分利用百度生态

Front / in? Be careful in the front / in the bow / in front

百度雄茂是派驻百度生态的内容和服务提供商的认证账户,致力于帮助内容提供商和服务提供商方便、高效地连接整个网络用户,充分利用百度生态开放的优势,获取流量,沉淀用户,塑造品牌,实现自身价值的快速增长。

在这里,我们只是使用入口的搜索资源平台,以提供我们的网站资源。具体数据公开平台及类似的官方账户100平台等平台,可登陆熊掌官方网站(http:/xiongzhang.Baidu.com/office/home/main)进一步了解。这里是如何修改网站访问熊掌上号码。

Front / in? Be careful in the front / in the bow / in front

首先是打开工作,这没有做详细的描述,根据平台提示操作的要求,这里我们默认通过了审核。

Front / in? Be careful in the front / in the bow / in front

直接进入页面转换步骤的转换方法访问熊掌数API提交函数

由于此站点是适合H5的站点,请遵循H5的转换步骤:

Front / in? Be careful in the front / in the bow / in front

将代码添加到所有页面的标题中<;head>;:

Front / in? Be careful in the front / in the bow / in front

<;script src=https:/www.ainiu.net/A/site/\\“/msite.Baidu.com/sdk/c.jsappid=,这是熊掌ID\\”>;>;/script>;。

然后添加焦点特性到H5页面(强烈推荐,但似乎不是强制性的),最多选择两种方式。

Front / in? Be careful in the front / in the bow / in front

Front / in? Be careful in the front / in the bow / in front

以前的代码转换属于粉丝担心转换不是核心的部分,下面是核心部分之一,将页面转换为符合熊掌规范:

Front / in? Be careful in the front / in the bow / in front

4.添加规范标签

Front / in? Be careful in the front / in the bow / in front

添加到H5页<;head>;部分:

Front / in? Be careful in the front / in the bow / in front

样式:<;link rel=\\“canonical\\”href=https://www.ainiu.net/A/Website/\\“这里是H5/>;

Front / in? Be careful in the front / in the bow / in front

href的内容必须是MIP页或H5页的PC页地址;如果没有PC页,请填写当前页地址。

Front / in? Be careful in the front / in the bow / in front

然后添加JSON_LD数据,例如:

Front / in? Be careful in the front / in the bow / in front

-= YTET-Eden subtitle group =-Translation:

{

(a) =_

-= YTET-Eden subtitle group =-Translation:

\"Appid\": \"transaction\": global .CFG fg caxzh/side/,

Title: \"{Dede:field.title/}\",

\"Image\": [

“{dede:global.cfg_basehost/}{dede:field.litpic/}”

],

“说明”:“{dede:field.Description/}”,

“pubDate”:“{dede:field.pubate Function=”myDate(‘Y-m-d’,@me)“/}{dede:field d.pubate函数=”myDate“(‘H:I:s’,@me)”/}

}

-= YTET-Eden subtitle group =-Translation:

描述:

Front / in? Be careful in the front / in the bow / in front

@Context:必须选择一个字段,离开\\“https:/ziyuan.Baidu.com/text/cambrian.jsonld\\”,如果您需要验证模式的数据,可以用模式地址替换

Front / in? Be careful in the front / in the bow / in front

@id:Required字段,当前页面的url

Front / in? Be careful in the front / in the bow / in front

appId:必须选择字段,带有掌上号码ID

Front / in? Be careful in the front / in the bow / in front

标题:必须选择字段、标题、推荐长度:少于20个字符

Front / in? Be careful in the front / in the bow / in front

图片:可选字段,搜索结果的结构化信息显示,只允许0,1或3张图纸。

Front / in? Be careful in the front / in the bow / in front

描述:可选字段,内容摘要:120个字符

Front / in? Be careful in the front / in the bow / in front

PubDate:必须选择字段,内容发布时间、格式为(2017-06-15T08:00:01)

Front / in? Be careful in the front / in the bow / in front

显然,上面的内容将放在Content页面中,即Details页面中,对于DEDECMS,您可以如下所示修改上面的示例:

-= YTET-Eden subtitle group =-Translation:

{

(a) =_

-= YTET-Eden subtitle group =-Translation:

\"Appid\": \"transaction\": global .CFG fg caxzh/side/,

Title: \"{Dede:field.title/}\",

\"Image\": [

“{dede:global.cfg_basehost/}{dede:field.litpic/}”

],

“说明”:“{dede:field.Description/}”,

“pubDate”:“{dede:field.pubate Function=”myDate(‘Y-m-d’,@me)“/}{dede:field d.pubate函数=”myDate“(‘H:I:s’,@me)”/}

}

-= YTET-Eden subtitle group =-Translation:

在这里解释一下,

{dede:global.cfg_basehost/}{dede:field.arcurl/}

获取当前文章页和

-= YTET-Eden subtitle group =-Translation:

这里是百度熊掌上号码ID,这里配置为全局变量,方便后续数据提交部分更改。另一方面,图像字段使用dedecms文章缩略图,默认情况下它附带一个缩略图,这里只有一个引用也符合代码要求。摘要和发布时间没有解释。

Front / in? Be careful in the front / in the bow / in front

完成上述工作后,您可以使用在线验证工具。

Front / in? Be careful in the front / in the bow / in front

Front / in? Be careful in the front / in the bow / in front

检查页面是否符合规范:

Front / in? Be careful in the front / in the bow / in front

Front / in? Be careful in the front / in the bow / in front

最后,我们要完成我们工作的核心部分,即数据的提交。这里提交的数据分为API提交手册提交,顾名思义就是在这里提交新的页面URL,比较困难。我们所做的是在每次发布文章时自动提交此页面的URL。以下是对前一篇文章的引用,\\“dedecms背景控制内容需要主动提交给百度。”

Front / in? Be careful in the front / in the bow / in front

5.在表结构的末尾输入数据库选择数据表#@_files,以添加一个新的字段xzh。字段类型为tinyint,默认值为1,表明在值为0时不推送数据。这样做的目的是方便背景控制是否推动。接下来,修改文章_add.php、文章_ud.php、files_add.php和files_ud.php的四个文件,模仿前面提到的部分,并将xzh和$xzh添加到适当的位置。并集成URL提交部分,将先前的URL提交与新的熊棕榈URL提交集成,这是代码的一部分:

Front / in? Be careful in the front / in the bow / in front

Front / in? Be careful in the front / in the bow / in front

.。

Front / in? Be careful in the front / in the bow / in front

If ($Push=1$xzh=1) {

{

URLs's personal data \"HTTPS:/www.ainiu.net\".

-=YTET -伊甸园字幕组=- 翻译:

$api_xzh=‘http:/data.zz.baidu.com/urlsappid=’.$cfg_xzh_id.‘Token=’$cfg_xzh_Token.‘type=realtime’;

描述 / 种类

$Options= array (

-= YTET-Eden subtitle group =-Translation:

“西罗普.波斯特”;“true post”

“我”,“我的朋友,我的朋友”,“我爱你,亲爱的。”我说,“哦,亲爱的。”

CULOPT Postfifilds(“\\n”,URL),“交易”(“\\n”,URL),“电子邮件”(\\n,URL),

CURLOPT_HTTPHEADER=> array (\"content-type: text / plain text\"),

(佛教)

curl_setopt_Array($ch,$Options);

$Result=curl_exec($ch);

Front / in? Be careful in the front / in the bow / in front

$ch_xzh=curl_init();

$Options_xzh= array (

-= YTET-Eden subtitle group =-Translation:

“西罗普.波斯特”;“true post”

“我”,“我的朋友,我的朋友”,“我爱你,亲爱的。”我说,“哦,亲爱的。”

CULOPT Postfifilds(“\\n”,URL),“交易”(“\\n”,URL),“电子邮件”(\\n,URL),

CURLOPT_HTTPHEADER=> array (\"content-type: text / plain text\"),

(佛教)

curl_setopt_Array($ch_xzh,$Options_xzh);

$Result_xzh=curl_exec($ch_xzh);

Front / in? Be careful in the front / in the bow / in front

}

ClearMyAddon($arcID,$title);

/返回成功信息

$msg=\\“请选择后续操作:

<;a href=\\“https:/www.ainiu.net/A/site/‘post_add.phpci=$type id’\\”>;>>继续发表文章<;/u>;<;>;/a>;

Front / in? Be careful in the front / in the bow / in front

一个href=\\“https://www.ainiu.net/A/Website/‘$artUrl’\\”目标=\\“_space\\>;>;u>;view文章<;/u>;>;/a>;

Front / in? Be careful in the front / in the bow / in front

-= YTET-Eden subtitle group =-translation: =

Front / in? Be careful in the front / in the bow / in front

<;a href=\\“https:/www.ainiu.net/A/site/‘Catalog_do.phpci=$typeiddorost=listfiles’\\”>;<;/u>;<;>;>;

一个href=\\“https://www.ainiu.net/A/Website/‘’\\”>;百度提交返回:\\“。$结果。\\”熊掌提交返回:\\“。$Resue_xzh.\\”<;/u>;<;/a>;

\"turning\";

}

Other {

ClearMyAddon($arcID,$title);

/返回成功信息

$msg=\\“请选择后续操作:

<;a href=\\“https:/www.ainiu.net/A/site/‘post_add.phpci=$type id’\\”>;>>继续发表文章<;/u>;<;>;/a>;

Front / in? Be careful in the front / in the bow / in front

一个href=\\“https://www.ainiu.net/A/Website/‘$artUrl’\\”目标=\\“_space\\>;>;u>;view文章<;/u>;>;/a>;

Front / in? Be careful in the front / in the bow / in front

-= YTET-Eden subtitle group =-translation: =

Front / in? Be careful in the front / in the bow / in front

<;a href=\\“https:/www.ainiu.net/A/site/‘Catalog_do.phpci=$typeiddorost=listfiles’\\”>;<;/u>;<;>;>;

\"turning\";

}

$\"Sustainable\" / \"Sustainable Development\" per hour. Update test (\"sustainable development\"); \"sustainable development\" (\"sustainable development\"), \"sustainable development\" (\"sustainable development\")

$wintitle=\\“文章的成功发行!”;

$wecome_info=\\“文章管理:出版文章”;

$Win= New OxWindow ();

$Win->;AddTitle(\\“成功发布文章:\\”);

$($);Addsglight($);

一小笔钱,一毛钱;温多(“手”,折);

$Win->;display();

}

.

有关具体更改,请参阅上载的附件文件。

Front / in? Be careful in the front / in the bow / in front

6.前面提到的全局变量不要忘记添加cfg_xzh_id来表示熊棕榈号ID,cfg_xzh_Token表示熊棕榈号令牌。

>看淘宝天猫京东免费购物和省钱赚钱优惠券

7.修改后台管理模板文件,并在文章_add.htm和Art chives_add.htm中添加以下内容:

Front / in? Be careful in the front / in the bow / in front

Front / in? Be careful in the front / in the bow / in front

<;td宽度=\\“100”>;积极推送到百度:<;/td>;

< td > & lt; input type = 'radio' name = 'Push' value = \"0\" / & gt; does not push

Enter type = 'radio' name = 'PUSH' value = \"1\" check =' 1 ≤ g / g; push < / td >

<;td宽度=\\“100\\”>;主动推送到支持掌上号码:<;/td>;

每日点击APP观看短片并赚钱应用下载http://www.meitianshuadian.com]<;/b>;输入类型=‘收音机’名称=‘xzh’值=\\“0\\”/>;不推

< / td > input type = 'radio' name = 'xzh' value = \"1\" Select / & gt; push < / td >

将以下内容添加到第一篇文章_ed.htm和存档_ed.htm中:

Front / in? Be careful in the front / in the bow / in front

<;td宽度=\\“100”>;积极推送到百度:<;/td>;

< td > & lt; input type = 'radio' name = 'Push' value = \"0\" & lt;php if ($arcRow [' Push'] ='0') echo \"check='1'\" & gt;/> does not push

Input type = 'radio' name = 'PUSH' value = \"1\" & lt;php if ($arcRow [' Push'] ='1') echo \"check='1'\" & gt;/> push < / td >

<;td宽度=\\“100\\”>;主动推送到支持掌上号码:<;/td>;

< td > & lt; input type = 'Radio'name='xzh' value = \"0\" & lt;php if ($arcRow ['Xzh'] ='0') echo \"check='1'\" & gt;/> does not push

输入类型=‘收音机’名称=‘xzh’值=\\“1\\”>;b>;[小白联盟运营网络货币项目http://www.xiaobailm.com]<;/b>;>;php($arcRow[‘xzh’]=‘1’)echo\\“Check=‘1’\\”>;/>;Push>;>;/td>;

发布当前文章后,背景如下:

Front / in? Be careful in the front / in the bow / in front

注意:背景只能设置为同时推送,不能同时推送,否则会出现问题。如有任何疑问,请联系北京爱牛网站建设公司:010/63495805

Front / in? Be careful in the front / in the bow / in front

分享当前页面将至少获得10%佣金,点此获取推广链接(规则说明)。

本站VIP源码资源永久免费下载!持续更新!www.526bt.com

加入999永久VIP会员带做项目包赚钱!教引流包搭建,社群资源共享!

新项目更新通知QQ群:767688774 站长技术交流QQ群:552760713

点击这里给我发消息

  • 我的微信
  • 这是我的微信扫一扫
  • weinxin
  • 我的微信公众号
  • 我的微信公众号扫一扫
  • weinxin
admin
直播系统app制作 直播软件开发 手机直播 软件定制
苹果签名200一月!不掉的苹果企业签名
2019年最新个体营业执照代办500元3-4天即可快递发你
官方支付接口代申请-支付宝-微信-QQ钱包

发表评论

您必须才能发表评论!