<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??碼云GVP開源項目 12k star Uniapp+ElementUI 功能強大 支持多語言、二開方便! 廣告
                1 .model路徑:ewei_shopv2\core\model 判斷用戶是否關注,關注返回1 ~~~ $rs = m("user")->followed($openid); ~~~ 查詢物流信息 ~~~ m('util')->getExpressList('youshuwuliu','518266033534'); ~~~ 獲取快遞商列表 ~~~ m('express')->getExpressList(); ~~~ 生成訂單號 ~~~ $ordersn = m('common')->createNO('order', 'ordersn', 'ME'); ~~~ 成為分銷商產品id ~~~ $rs = m('common')->getPluginset('commission')['become_goodsid']; ~~~ 自動定位返回省市縣 ~~~ $rs = json_decode(m('util')->getIpAddress(),1); Array ( [ret] => 1 [start] => -1 [end] => -1 [country] => 中國 [province] => 江蘇 [city] => 蘇州 [district] => [isp] => [type] => [desc] => ) ~~~ 根據經緯度計算距離 params :lat1 緯度1; lng1 經度1; lat2 緯度2; lng2 經度2; len_type (1:m or 2:km); ~~~ m('util')->GetDistance($lat1, $lng1, $lat2, $lng2, $len_type = 1, $decimal = 2); ~~~ 返回會員信息,支持傳入openid,mid,兩個功能一樣,無區別 ~~~ $rs =m('member')->getMember($mid); $rs =m('member')->getInfo($openid); $rs =m('member')->getMobileMember('18291448834');只支持手機號,返回同上信息 ~~~ 查詢積分與余額,可傳入openid,uid ~~~ $rs =m('member')->getCredits($openid); Array ( [credit1] => 0.00 [credit2] => 9999.00 ) ~~~ 查詢積分,只返回一個值,支持openid,uid ~~~ m('member')->getCredit($openid,'credit2'); ~~~ 獲取用戶信息 oauth,snsapi_userinfo 是用戶信息 ~~~ $rs = m('member')->wxuser($appid, $secret, $snsapi = 'snsapi_base', $expired = '600'); ~~~ 查詢會員等級,支持openid/mid ~~~ m('member')->getLevel($mid); Array ( [levelname] => 普通用戶 [discount] => 10 ) ~~~ 寫入積分或余額,傳入openid,要寫入的字段,分數,日志 ~~~ m('member')->setCredit($openid,'credit2',-1,[0,'測試增加1積分']); ~~~ 發送文本客服消息 ~~~ $rs =m('message')->sendCustomNotice($openid, '感謝您的關注,恭喜您獲得關注獎勵'); m('message')->sendCustomNotice($openid, '感謝您的關注,恭喜您獲得關注獎勵',mobileUrl('task', array('tabpage' => 'runninga'), true));帶連接 Array ( [errcode] => 0 [errmsg] => ok ) ~~~ 發送圖片給用戶 ~~~ m('message')->sendImage($openid, $mediaid); ~~~ 發送圖文信息 ~~~ $articles[] = [ 'title'=>urlencode('圖文標題'), 'description'=>urlencode('圖文描述'), 'url'=>'', 'picurl'=>'' ]; $rs =m('message')->sendNews($openid, $articles); ~~~ 發送模板消息 ~~~ $tplid = "oHp99Ox0wF1ipI8-FJ7TDgFfkBbi8MW39u2Ft4jp3bQ"; $url = ""; $arr =[]; $sendarr =['測試通知標題','西安大學','管理員','2018-4-28','商城決定展示關閉','點擊查看詳情']; $tpl = '{{first.DATA}} 學校:{{keyword1.DATA}} 通知人:{{keyword2.DATA}} 時間:{{keyword3.DATA}} 通知內容:{{keyword4.DATA}} {{remark.DATA}}'; preg_match_all('/{{(.*).DATA}}/',$tpl,$rs); foreach($rs[1] as $k=>$v){ $arr[$v] = array( 'value'=>$sendarr[$k] ); } $arr['first']['color']='#04be02'; $arr['remark']['color']='#18b4ed'; $rs = m('Message')->sendTplNotice($openid, $tplid, $arr, $url = ''); ~~~ 獲取配置信息 可傳入需要的參數值 如pay ~~~ $rs= m('common')->getSysset('', $_W['uniacid']); ~~~ 支付簽名,17是支付方式,成功后處理通知文件在ewei_shopv2\payment\wechat\notify.php ~~~ $options = array(); $options['appid'] = $user['appid']; $options['secret'] = $user['secretkey']; $options['apikey'] = $user['prikey']; $options['mchid'] = $user['mchid']; $params = array(); $params['tid'] = $row['os_orderid']; $params['user'] = $row['openid']; $params['fee'] =(float)$row['money']; $params['title'] = '訂單標題'; $params['openid'] = $row['openid']; if (is_weixin()) { $wechat = m('common')->wechat_build($params, $options,17); } ~~~ 生成二維碼,返回url ~~~ $rs = m('qrcode')->createQrcode("http://www.baidu.com"); ~~~
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看