修改代刷网交易金额

   来到 根目录 
   
   打开 ajax.php 
   
   来到16-22行(有的不一样,根据自己目录操作)
   
   修改如下 两行:
   
        $count1 = $DB->count("SELECT count(*) from shua_orders");
        
        $count7 = round($count6, 2);
        
   改成这样:
   
        $count1 = $DB->count("SELECT count(*)*3+100 from shua_orders");
        
        $count7 = round($count6*3+100, 2);
        
    在 (*)后面乘以了个3还加了100 
       $count6也乘以了个3还加了100 
       
    保存 返回前台发现 订单数 和 今日交易额 都被翻了3倍还多了100
    
    方法会了 自己就去根据自己需求随意改动把 
    
    这里给个表 分别告诉你们哪行是改什么的
    
    ***********************
    
        //所有订单数
        $count1 = $DB->count("SELECT count(*) from shua_orders");
        //完成订单数
        $count2 = $DB->count("SELECT count(*) from shua_orders where status>=1");
        //不需要懂这行
        $count3 = $DB->count("SELECT sum(money) from shua_pay where status=1");
        //总交易额
        $count4 = round($count3, 2);
        //今日订单数
        $count5 = $DB->count("SELECT count(*) from `shua_orders` WHERE  `addtime` > '$time'");.
        //不需要懂这行
        $count6 = $DB->count("SELECT sum(money) FROM `shua_pay` WHERE `addtime` > '$time' AND `status` = 1");
        //今日交易额
        $count7 = round($count6, 2);
            
    ***********************
    
    改好的示例代码:
    
    $count1 = $DB->count("SELECT count(*)*2+1214 from shua_orders");
    $count2 = $DB->count("SELECT count(*)*2+1210 from shua_orders where status>=1");
    $count3 = $DB->count("SELECT sum(money)*3+3056 from shua_pay where status=1");
    $count4 = round($count3, 2);
    $count5 = $DB->count("SELECT count(*)*2+138 from `shua_orders` WHERE  `addtime` > '$time'");
    $count6 = $DB->count("SELECT sum(money) FROM `shua_pay` WHERE `addtime` > '$time' AND `status` = 1");
    $count7 = round($count6 * 3 + 359, 2);

  • 7
    点赞
  • 11
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值