{
    分享网正式开通,我们为大家提供免费资源,欢迎大家踊跃投稿!

ECSHOP甜心100多级分销旗舰版模板+支付接口+推广二维码+ APP安卓

ECSHOP甜心100多级分销旗舰版模板+支付接口+推广二维码+ APP安卓苹果源码附详细安装调配文档

 

环境要求 PHP 5.2,5.3 MYSQL> 5.0(Windows最佳,Linux容易出错)


我们将后台面板进行了升级,升级到了最新的模板堂面板界面,同时集成了APP安卓苹果源码,并针对支付方式进行了商城系统完善和修正等等!

教程展示

APP教程(包含反编译教程)

亲测演示截图

 

 

 

 问题锦集(论坛收集)

 A.分销中心直接获取二维码的实现

 

1,找到文件:mobile / distribute.php找到如下代码

 

 //第三方登录接口
elseif($ action =='oath') 

在上方添加如下代码

     //推广二维码
    elseif($ action =='qrcode')
    { 
            include_once(ROOT_PATH。'../wechat/callback-ent.php'); // wei信接口类
            $ objClass = new wechatCallbackapi(); 
            $ user_id = $ _GET ['affiliate']; 
            // $ user_id = $ _SESSION ['user_id']; 
            $ affiliate = unserialize($ GLOBALS ['_ CFG'] ['affiliate']); 
            $ level_register_up =(float)$ affiliate ['config'] ['level_register_up']; 
            $ rank_points = $ GLOBALS ['db'] - > getOne(SELECT rank_points FROM。$ GLOBALS ['ecs'] - > table('users')。其中user_id =。$ _ SESSION [user_id]); 
            //检查分销商权限
            如果($ rank_points> $ level_register_up || $ rank_points == $ level_register_up)
            { 
                    if(!empty($ user_id)){ 

                            $ scene_id = $ user_id; 
                            $ affiliate = $ user_id; 
                            $ type ='tj'; 
                            $ user_name = $ db-> getOne(SELECT`user_name` FROM。$ GLOBALS ['ecs'] - > table('users')。WHERE`user_id` ='$ scene_id'); 
                            $ base_url = $ db-> getOne(SELECT`cfg_value` FROM`wxch_cfg` WHERE`cfg_name` ='baseurl'); 
                            $ scene = $ user_name;
                            $ qr_path = $ db-> getOne(SELECT`qr_path` FROM`wxch_qr_tianxin100` WHERE`scene_id` ='$ scene_id'); 
                            if(!empty($ qr_path))
                            { 
                                    $ surl = $ base_url.'wechat / qrcode /'.$ qr_path; 
                            } else { 
                                    $ action_name = QR_LIMIT_SCENE; 
                                    $ json_arr = array('action_name'=> $ action_name,'action_info'=> array('scene'=> array('scene_id'=> $ scene_id))); 
                                    $ filepath = json_encode($ json_arr); 
                                    $ objClass->的access_token($分贝);
                                    $ ret = $ db-> getRow(SELECT`access_token` FROM`wxch_config`); 
                                    $ access_token = $ ret ['access_token']; 

                                    if(strlen($ access_token)> = 64)
                                    { 
                                            $ url ='https: //api.weixin.qq.com/cgi-bin/qrcode/create?access_token ='. $access_token 
                                            $ res_json = $ objClass-> curl_grab_page($ url,$ filepath); 
                                            $ json = json_decode($ res_json); 
                                    } 
                                            $票= $ json->票;
                                    if($ ticket)
                                    { 
                                            $ ticket_url = urlencode($ ticket); 
                                            $ ticket_url ='https://mp.weixin.qq.com/cgi-bin/showqrcode?ticket='.$ticket_url; 
                                            $ imageinfo = $ objClass-> downloadimageformweixin($ ticket_url); 
                                            $ time = time(); 
                                            $ path ='../images/qrcode/'.$time.'.jpg' 
                                            $ surl = $ base_url.'images / qrcode /'.$ time。'。jpg';

                                            $ h_path ='../images/qrcode/head/'.$time.'.jpg'; 
                                            $ h_local_file = fopen($ h_path,'a'); 
                                            $ headimgurl = $ db-> getOne(SELECT`headimgurl` FROM`wxch_user` WHERE`uname` ='$ user_name'); 
                                            $ h_imageinfo = $ objClass-> downloadimageformweixin($ headimgurl); 
                                            if(false!== $ local_file)
                                            { 
                                                    if(false!== fwrite($ local_file,$ imageinfo)&& false!== fwrite($ h_local_file,$ h_imageinfo))
                                                    { 
                                                            fclose($ local_file); 
                                                            $ insert_sql = INSERT INTO`wxch_qr`(`type`,`action_name`,`ticket`,`scene_id`,`scene`,`qr_path`,`function`,`affiliate`,`endtime`,`dateline`)VALUES ('$ type','$ action_name','$ ticket','$ scene_id','$ scene','$ surl','$ function','$ affiliate','$ endtime' ); 
                                                            $ DB->查询($ INSERT_SQL);



                                    $ imgsrc = ../images/qrcode/.$time..jpg; 
                                    $ h_imgsrc = $ time..jpg; 
                                    $ width = 200; 
                                    $ height = 200; 
                                    $ time = time(); 
                                    $ name = $ objClass-> resizejpg($ imgsrc,$ width,$ height,$ time); 
                                    // echo $ name; exit; 
                                    $ imgs = $ name; 
                                    $ width = 60; 
                                    $ height = 60; 
                                    $ h_time = $ time._1;
                                    $ h_name = $ objClass-> resizejpg($ h_imgsrc,$ width,$ height,$ h_time); 
                                    $ h_imgs = $ h_name; 
                                    $ target ='../qrcode/tianxin100.jpg';//背景图片
                                    $ target_img = Imagecreatefromjpeg($ target); 
                                    $ source = Imagecreatefromjpeg($ imgs); 
                                    $ h_source = Imagecreatefromjpeg($ h_imgs); 
                                    imagecopy的($ target_img,$源,165,392,0,0,200,200); 
                                    imagecopy的($ target_img,$ h_source,60,28,0,0,60,60); 
                    $ fontfile = ../wechat/simsun.ttf;
                                    $ nickname = $ db-> getOne(SELECT`nickname` FROM`wxch_user` WHERE`uname` ='$ scene'); 
                    $ textcolor = imagecolorallocate($ target_img,0,0,255); 
                    imagettftext($ target_img,18,0,268,59,$文本颜色,$ fontfile,$昵称); 
                                    imagejpeg($ target_img, '.. /微信/ QR码/'.$时间。' JPG“。); 
                                    $ s_data = $ time..jpg; 
                                    $ surl = $ base_url.'wechat / qrcode /'.$ s_data; 
                                    $ insert_sql = INSERT INTO`wxch_qr_tianxin100`(`qr_path`,`scene`,`scene_id`,'nickname`)VALUES('$ s_data','$ scene','$ scene_id'
                                    $ DB->查询($ INSERT_SQL); 
                            } 
                    } 
            } else { 
                    show_message('你还不是分销商,不能获取二维码','请先购买商品获取权限','distribute.php','错误'); 
            } 
            $ smarty-> assign('qrcode',$ surl); 
            $ smarty->显示器( 'distribute.dwt'); 
    }

 

找到文件移动/ distribute.php

    / *显示页面的动作列表* / 
    $ ui_arr = array('register','login','profile','dianpu','act_dianpu','order_list'

修改为

    / *显示页面的动作列表* / 
    $ ui_arr = array('register','login','profile','dianpu','qrcode','act_dianpu','order_list'

2,找到文件:mobile / themes / miqinew / distribute.dwt找到如下代码

<li> </ i> </ i> </ li> </ span>

在以上代码下面添加代码

</ li> </ span> </ span> I> </ LI>

继续找到  <! - /一级分销S - > <! - {if $ action eq'fenxiao1'} - >

在以上代码上面添加代码

    <! - 我的二维码S - > 
    <! - {if $ action eq'qrcode'} - > 
    <header id = header> 
      <div class = header_l header_return> <a class = ico_10 href = .php>返回</a> </ div> 
      <h1>我的二维码</ h1> 
    </ header> 
    <div class = m-wrap> 
      <div class = common-wrapper> 
        <dl class =描述> 
          <dt>二维码推广三部曲:</ dt> 
          <dd> 1,长按下方二维码图片,保存图片到手机相册。</ dd> 
          <dd> 2,发送二维码图片到朋友圈或wei信好友!
          你的所有会员消费,你都可以获得分佣提成!</ dd> 
        </ dl>
      </ div> 
      <div class = qr-img>
        <img alt =我的推广二维码src = {$ qrcode} /> 
      </ div> 
    </ div> 
    <! - {/ if} - > 
    <! - 我的二维码E -

3,找到文件:wechat / callback-ent.php搜索如下代码

private function resizejpg($ imgsrc,$ imgwidth,$ imgheight,$ time)

修改为 function resizejpg($ imgsrc,$ imgwidth,$ imgheight,$ time)

继续搜索 标题(Content-type:image / jpg);

将其修改为  // header(Content-type:image / jpg);

(请注意的是,如果你有修改过二维码图片或字体等,请根据你现在的程序来进行修改。此版本是完全根据甜心安装付费二维码功能后的初始程序代码上写的,有很多付费功能的私有类,方法等!请悉知。)这个功能实现的二维码图片和甜心官方提供的wei信菜单获取到的二维码图片是一样的效果,生成的图片也是一样的。用户进入商城后,只要是具有分销商权限都可以获取到二维码,当然,没有分销商权限也是无法看到查询菜单的。别的项目上移植过来的,所以可能会有冗余,懂的人自己去处理吧!

 B.“该公众号暂时无法提供服务”付费二维码终极解决方案

需要实现功能的几个核心参数值分别是:access_token(原则上来讲,这个是不应该考虑在内的,因为所有wei信息消息功能都需要用到这个参数值,但实际上安装后其他功能是能够正常返回的。)


套路很深,不支持下载!


米微资源分享网 , 版权所有丨本站资源仅限于学习研究,严禁从事商业或者非法活动!丨本网站采用BY-NC-SA协议进行授权
转载请注明原文链接:ECSHOP甜心100多级分销旗舰版模板+支付接口+推广二维码+ APP安卓
喜欢 ()分享 (0)