微信开放社区
服务商入驻
文档
登录
切换主页

暂无个人介绍

关注私信

正在关注

0

关注者

0

获得过 0 次赞
回答过的问题获得 0 次赞
分享过的文章/案例获得 0 次赞
评论与回复获得 0 次赞
文章 回答 提问 收藏 关注问题
  • 小程序微信支付成功之后不走回调是怎么回事?

    https://cjdx.shangmangs.com/api/Notify/notify 这个是回调地址 public function notify() { $donationModel = new Donation(); $zhengshuModel = new Zhengshu(); //存储微信的回调 $xml = file_get_contents("php://input"); $arr = $this -> XmlToArr($xml); if(empty($arr['out_trade_no'])){ exit; } $out_trade_no = $arr['out_trade_no']; $openid=$arr['openid'];//openid $sign=$arr['sign'];//校验码 $total_fee=$arr['total_fee'];//订单金额 $transaction_id=$arr['transaction_id'];//微信支付号 //订单表有无 $count=$donationModel->where("out_trade_no='".$out_trade_no."'")->count(); //判断有无订单 $myfile = fopen("newfile.txt", "w") or die("Unable to open file!"); $txt = $out_trade_no."\n"; fwrite($myfile, $txt); $txt = $openid."\n"; fwrite($myfile, $txt); $txt='count:'.$count; fwrite($myfile, $txt); fclose($myfile); if($count==1) { //这里是回调之后数据库操作 } echo 'success'; }

    2021-04-14
  • 如何使text组件的user-select的属性变为inline?

    官方文档中提到,text组件的selectable属性废弃,调整为user-select属性。但user-select属性会表现为display:inline-block,而业务中仍然需要表现为display:inline。在text组件中直接设置style="display:inline"无效果。

    2021-01-21
关闭

选择需要上架的开放服务

  • 模板开发

    针对行业、场景的小程序代开发服务,帮助企业快速搭建小程序

    上架
  • 插件

    提供可被小程序直接使用、丰富小程序能力的功能模块

    上架
  • 小商店服务

    为小商店商家提供更多的能力,帮助商家经营好小商店

    上架
关闭

案例类型

  • 小程序
  • 插件
  • 关于腾讯
  • 运营规范
  • 文档中心
  • 辟谣中心
  • 客服中心
  • Copyright © 2012-2025 Tencent. All Rights Reserved.