韬客时代卷轴模式系统开发介绍和部分核心源码

韬客时代是一种卷轴模式系统。什么是卷轴模式?新用户注册,先送你一部分积分,该积分用于兑换一个初始任务,俗称卷轴!卷轴模式的赚钱的原理是,你用积分兑换初级任务包,完成卷轴任务之后,你可以获得更多的积分,然后复投,达到一定数量后可以兑换更高级的任务包,任务包越高级每次获得的积分也就越多。这些积分可以用来购物消费交易。卷轴模式是一种商业营销模式,主要通过发放卷轴、证券的方式,用卷轴代替流动现金,用绿色积分顶替风险,为消费者消费、领奖提供一站式服务,让消费者安心消费,安心领奖。

奖励规则:

1.一级供应商500数据奖励999

2.二级供应商1000数据奖励2999

3.三级供应商1500数据奖励6999

4.四级供应商2000数据奖励9999

带货+卷轴模式+分红

金融+新零创+资本投流模式

操作步骤:

1.玩家进货,任意选择

2.各大网红主播帮你卖货

3.获得利润提现

日利0.9-3%

每天自己选择进货39-199货品区进多少平台帮你卖多少

卷轴模式的优势是什么?

①为消费者提供一站式服务,让消费者可以安心消费、安心领奖。

②卷轴模式可以用卷轴代替流动现金,用绿色积分顶替风险,为消费者提供更多的选择。

③卷轴模式的交易手续费和升星达人的要求都非常细致,但只要掌握了玩法和规则,就可以轻松参与其中,获得不错的收益。

部分代码段:(JinYuJie729)

public function creditOrderDetailAction()

    {

        $post = input('post.');

        $data = [

            'code' => 0,

            'msg' => '操作失败',

            'data' => []

        ];

        do{

            //参数不正确

            if( !$post['id']

                OR !in_array($post['type'],['confirm_expend','refund','appeal','confirm_income']))

            {

                break;

            }

            //比对用户id和卖家id和对应的类型是否一致

            $order_info = Order::find($post['id'])->toArray();

            if( ( $order_info['status'] == 1  && !in_array($post['type'],['confirm_expend','refund','appeal']))

                OR ( $order_info['status'] == 2 && !in_array($post['type'],['appeal','confirm_income']))

                OR ($order_info['status'] == 3 && !in_array($post['type'],['refund','confirm_income']))

                OR $order_info['status'] == 4

                OR $order_info['status'] == 5

            )

            {

                $data['msg'] = '订单状态错误';

                break;

            }

            $post_info = Jfyz::find($order_info['post_id'])->toArray();

            if( ( in_array($post['type'],['appeal','confirm_income']) && $order_info['uid'] != self::$userInfo['id'] )

             OR ( in_array($post['type'],['refund','confirm_expend']) && $post_info['uid'] != self::$userInfo['id'] )

            )

            {

                break;

            }

            if( $post['type'] == 'confirm_expend' && !$post['thumb'])

            {

                $data['msg'] = '请上传转款凭证';

                break;

            }

            if( in_array($post['type'],['appeal','refund']) && !$post['note'])

            {

                $data['msg'] = '请填写原因';

            }

            $status = [

                'confirm_expend' => 2,

                'appeal' => 3,

                'refund' => 4,

                'confirm_income' => 5

            ];

            Jfyz::startTrans();

            $mobile = '';

            $json_data = '';

            if( in_array($post['type'],['confirm_expend','refund']))

            {

                $member_info = Member::field('id,openid,credit1,mobile')->where('id',$order_info['uid'])->find()->toArray();

                $mobile = $member_info['mobile'];

                $json_data = $post['type'] == 'confirm_expend' ? '{money:"'.bcsub(bcmul($order_info['credit'],0.97,2),2,2).'"}' : '{credit:"'.$order_info['credit'].'"}';

            }

            try{

                //修改订单状态;

                $order_update = ['status'=>$status[$post['type']],'edit_time'=>time()];

                if($post['type'] == 'confirm_expend') $order_update['thumb'] = $post['thumb'];

                if($post['type'] == 'refund' OR $post['type'] == 'appeal') $order_update['note'] = $post['note'];

                Order::where('id',$post['id'])->update($order_update);

                //如果是驳回,就得退回积分给用户,同时增加卖家可收入积分,减少卖家锁定的积分。

                if( $post['type'] == 'refund')

                {

                    //增加日志:

                    $member_info['credit1'] = Member::getUserCredit($order_info['uid'],'credit1');

                    MemberCreditRecord::creditLog($member_info,$order_info['credit'],'credit1','积分兑换被驳回,退回'.$order_info['credit'].'积分','10');

                    //减少用户积分

                    Member::creditAction( $order_info['uid'],$order_info['credit'],0,'credit1');

                    //返回可收积分的值

                    Jfyz::where('id',$order_info['post_id'])->exp('lock_credit','lock_credit - '.$order_info['credit'])->exp('allow_credit','allow_credit + '.$order_info['credit'])->update();

                    //如果状态为已过期,则恢复状态

                    if(Jfyz::where('id',$order_info['post_id'])->where('status',4)->value('allow_credit') > 1000 )

                        Jfyz::where('id',$order_info['post_id'])->update(['status'=>3]);

                }

                //如果是确认收款,就得释放卖家锁定的积分,增加卖家的可提现积分。

                if( $post['type'] == 'confirm_income' )

                    Jfyz::where('id',$order_info['post_id'])->exp('lock_credit','lock_credit - '.$order_info['credit'])->exp('income_credit','income_credit + '.$order_info['credit'])->update();

                Jfyz::commit();

                $data['code'] = 1;

                $data['msg'] = '操作成功!';

                //发送短信

                if( $mobile )

                    @Sms::main($mobile,$json_data,($post['type'] == 'refund' ? 'refund' : 'exchange') );

            } catch ( \Exception $e)

            {

                var_dump($e->getMessage());

                var_dump($e->getLine());

                var_dump($e->getFile());

                Jfyz::rollback();

            }

        }while(0);

        return json($data);

    }

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值