============================================================ ThinkPHP 蒜蒜 index.php define('APP_PATH','./Apps/'); 應用目錄名 1->config.php default -> GoShop F:\APICloud-ZJR-Work\Work-SuanOK-ThinkPHP\Work-ThinkPHP\20160621-1-ada-ok-ok\Apps\Common\Conf\config.php 'DEFAULT_CONTROLLER' => 'GoShop', //默认首页模块 2->GoShop default -> LoveShop default: //默认链接 //$this->shopUrl='Index'; //--- 20170206 change for alipay anual renew contract $this->shopUrl='LoveShop'; break; $this->redirect('http://'.$this->FromSiteName.'.suanok.com/Home/'.$this->shopUrl.'/'); 3->LoveShop -> list 全店热恋 all special $groupId=23; //主推专题组 $groupSpecial=M('shop_group_special'); $special=M('shop_special'); $groupInfo=$groupSpecial->find($groupId); $groupAllid=$groupInfo['allid']; WX-Pay 服务器地址 (URL) http://wx.b.qq.com/weixin/addev/PTZGRTK 令牌 (Token) 91473c7c8cac1ab43d8789166e968cbb 消息加解密密钥 (EncodingAESKey) KitUL6XnfwgbHkjIuEMsomUZRhivrzvbzr6S39yDMX7 消息加解密方式 明文模式 F:\APICloud-ZJR-Work\Work-SuanOK-ThinkPHP\Work-ThinkPHP\20160921-1-dv-work\WxPay\lib WxPay.Config.php const APPID = 'wx3598bbc795269f7c'; const MCHID = '1323304501'; const KEY = '6A93A4E9C75E99C2595E602674FA2998'; const APPSECRET = 'e678a2f0477bea8e4babe2aa0c2de58c'; ============================================================ WX 1-微信开放平台帐号 https://open.weixin.qq.com/ 1837794505@qq.com + a-z 2-微信公众号: https://mp.weixin.qq.com/ 名稱: 蒜蒜suanok x-> gz@xp06.com + sansan985 改-> 592047561@qq.com + aa2233zz 小程序 20170728 注冊 登入 767878579@qq.com + aa2233zz 手机 13538792973 + d 微信jiami098 AppID(小程序ID) wx09fbb4985565281a 3-微信支付商户平台IE https://pay.weixin.qq.com/index.php 登录帐号1323304501@1323304501 + 881958 4-財付通 企業版IE https://mch.tenpay.com 微信支付商户号1323304501 商户平台登录密码 881958 申请对应的公众号 蒜蒜() 公众号APPID wx3598bbc795269f7c 密钥KEY:6A93A4E9C75E99C2595E602674FA2998 產生 access token appid + secret -> access_token wx3598bbc795269f7c + e678a2f0477bea8e4babe2aa0c2de58c -> 64kS3n6YtSxwukIQuNwp_2cLJ-qZJPSt0v1nddcoVNOLuRh6pOvVcti0eocrl6Hn5uTb88pC8_Ce42qA0AtVDasp-YIGfuiXe5ioNt8GdWPjXik0musZ-72z9_rApVvtQIWiCEADVJ 自定义菜单创建接口 { "button":[ { "type":"view", "name":"买水", "url":"http://www.suanok.com" }, { "type":"view", "name":"我的", "url":"http://www.suanok.com/Home/Public/my/" }, { "name":"关于", "sub_button":[ { "type":"view", "name":"使用说明", "url":"http://www.suanok.com/Home/Shop/services/" }, { "type":"click", "name":"在线咨询", "key":"V1001_GOOD" }] }] } 生成带参数的二维码 {"action_name": "QR_LIMIT_SCENE", "action_info": {"scene": {"scene_id": 123}}} https://mp.weixin.qq.com/cgi-bin/showqrcode?ticket=gQH_8DwAAAAAAAAAAS5odHRwOi8vd2VpeGluLnFxLmNvbS9xLzAybVhia0J3OU1iTV8xMDAwMDAwM0UAAgRGoUNZAwQAAAAA "scene_id": 123 -> "ticket": "gQFr8TwAAAAAAAAAAS5odHRwOi8vd2VpeGluLnFxLmNvbS9xLzAyQmhNZkI1OU1iTV8xMDAwME0wM3MAAgQFoUNZAwQAAAAA" "scene_id": 124 -> "ticket": "gQH_8DwAAAAAAAAAAS5odHRwOi8vd2VpeGluLnFxLmNvbS9xLzAybVhia0J3OU1iTV8xMDAwMDAwM0UAAgRGoUNZAwQAAAAA"