最新全开源礼品代发系统源码_电商快递代发_一件代发系统

内容目录


一、详细介绍

最新全开源礼品代发系统源码/电商快递代发/一件代发系统

测试环境:Nginx + PHP7.2 + MySQL5.6

二、效果展示

1.部分代码

代码如下(示例):

php 复制代码
public function index()
    {
        $reg = Db::name('cloud_user')->where('id', 1)->find();
        $info = $service = [];
        $logstate = 0;
        if ($reg) {
            if ($reg['logstate'] == 1) $logstate = 1;
            $info['username'] = $reg['username'];
            $ret = $this->getmoney($reg);
            if ($ret['code'] == 1) {
                $info['money'] = $ret['data'];
                Db::name('cloud_user')->where('id', 1)->update(['balance' => $ret['data']]);
            } else {
                $info['money'] = '0.00';
            }
            $ret = $this->loadService(['op' => 1, 'token' => $reg['token']]);
            if ($ret['code'] == 1) {
                $service = $ret['data'];
            }
        }

        $this->assign('reg', $reg);
        $this->assign('logstate', $logstate);
        $this->assign('info', $info);
        $this->assign('service', $service);
        return $this->fetch();
    }

    public function sms()
    {
        $op = $this->request->post('op');
        if (!in_array($op, ['get', 'check'])) $op = 'get';
        $mobile = $this->request->post('mobile');
        $event = $this->request->post('event', 'register');
        if(!preg_match('/^1[3456789]\d{9}$/', $mobile)) $this->error('手机号格式错误');
        $args = array('mobile' => $mobile, 'event' => $event);
        if ($op === 'get') {
            $api = '/service/sms/send';
        } else {
            $api = '/service/sms/check';
            $captcha = $this->request->post('code');
            $args['captcha'] = $captcha;
        }
        $ret = $this->curlPost($api, $args);
        $ret = json_decode($ret, true);
        return $ret;
    }

2.效果图展示



相关推荐
冬奇Lab39 分钟前
Code Agent 解剖(15):Harness 设计之五——可观测性
人工智能·开源
冬奇Lab40 分钟前
开源项目第203期:Cumora — AI Agent 与人类同队的跨平台团队协作工具
人工智能·开源·资讯
IT古董2 小时前
AI 资讯日报 | 2026年8月29日:开源大模型三连发,DeepSeek 500 亿融资落地
人工智能·开源
纯.Pure_Jin(g)6 小时前
靶场PHP函数整理+防御方式
开发语言·php·ctf
大模型丫丫8 小时前
如何高效部署开源AI编程助手:OpenCode实战指南
开源·ai编程
ovO8 小时前
DeepSeek Harness 源码解读(四):一次 Turn 为什么会跑多个 Step
开源·agent·deepseek
不悔哥8 小时前
Meshtastic:给对讲机换上开源网状大脑
开源
FIT2CLOUD飞致云9 小时前
1Panel AI一体机(GB10版)推出MiniMax H3本地视频生成方案
运维·ai·开源·1panel·ai视频·运维面板
ovO9 小时前
DeepSeek Harness 源码解读(三):七个核心服务怎样拼成一次 Agent 运行
开源·agent·deepseek