悟喜生活是一款聊天与商城一体的系统,其主要功能有支付系统,购物车系统,会员系统,聊天系统,物流系统,资讯系统等等。
悟喜生活官方特色
1、来自平台自产自销,直播带货销售渠道赚钱,来自店主和流量平台进场赚钱。
2、广告电商
3、以后大家购物也会变得更加轻松
悟喜生活系统软件亮点
1、依托创新电商服务平台进行打造
2、全新升级只为全方位满足大家的使用需求
3、多种形式进行呈现带给用户更多的选择和体验
悟喜生活系统软件特点
1、0元的抢购也很多,商品里也有特区,都是全网最低价。
2、热门产品实时推荐,各种热门产品都能自动推荐给大家;
3、给你带来不同种类和选择的商品,在这里都可以快速入购物。
悟喜生活系统开发源码分享:
<?php
namespace app\admin\controller;
use app\admin\model\system\SystemAdmin;
use crmeb\services\UtilService;
use think\facade\Session;
use think\facade\Route as Url;
/**
* 登录验证控制器
* Class Login
* @package app\admin\controller
*/
class Login extends SystemBasic
{
public function index()
{
return $this->fetch();
}
/**
* 登录验证 + 验证码验证
*/
public function verify()
{
if (!request()->isPost()) return $this->failed('请登陆!');
list($account, $pwd, $verify) = UtilService::postMore([
'account', 'pwd', 'verify'
], null, true);
//检验验证码
if (!captcha_check($verify)) return $this->failed('验证码错误,请重新输入');
$error = Session::get('login_error') ?: ['num' => 0, 'time' => time()];
$error['num'] = 0;
if ($error['num'] >= 5 && $error['time'] > strtotime('- 5 minutes'))
return $this->failed('错误次数过多,请稍候再试!');
//检验帐号密码
$res = SystemAdmin::login($account, $pwd);
if ($res) {
Session::set('login_error', null);
Session::save();
return $this->successful(['url' => Url::buildUrl('Index/index')->build()]);
} else {
$error['num'] += 1;
$error['time'] = time();
Session::set('login_error', $error);
Session::save();
return $this->failed(SystemAdmin::getErrorInfo('用户名错误,请重新输入'));
}
}
public function captcha()
{
ob_clean();
return captcha();
}
/**
* 退出登陆
*/
public function logout()
{
SystemAdmin::clearLoginInfo();
$this->redirect(Url::buildUrl('index')->build());
}
}