盲盒抽奖现在应该在国内算是过了风口了,但是在国外还是很热门的,特别是东南亚地区市场基本上一片空白。很多人就想着做一套多语言的国际版盲盒程序在国外运营。 开发语言 PHP 框架 fastadmin 这个真的很好用,方便又高效后台还有很多插件可以一键调用。 确定主体功能、UI国际化、多语言一键切换、 接入在线国际支付、 注册登录部分接入国际短信API、商品回收、分享赚佣金、代理分销、 在线充值、提现功能、多语言在线客服、确定了主体功能我们就开始写部分功能
后端部分
k rel="stylesheet" type="text/css" href="{G_TEMPLATES_CSS}/mycart.css"/>
管理后台部分 * 添加商品 * * @param string goods_name * @param string goods_pic * @param string id 传参则更新数据,不传则写入数据 * @return array */ public function submit_goods(goods_name,goods_pic,cid,id='') { if(!goods_pic) return ['code'=>1,'info'=>('请上传商品图片')]; if(!shop_name) return ['code'=>1,'info'=>('请输入店铺名称')]; if(!data = [ 'shop_name' => goods_name, 'goods_price' => goods_pic, 'goods_info' => cid, 'addtime' => time() ]; if(!id){ res = Db::table('xy_goods_
后台对接国际支付部分代码
// +---------------------------------------------------------------------- // | // +---------------------------------------------------------------------- namespace app\admin\controller; use app\admin\service\NodeService; use library\Controller; use library\tools\Data; use think\Db; /**
- 支付方式管理
- Class Pay
- @package app\admin\controller
/
class Pay extends Controller
{
/*
-
指定当前数据表
-
@var string / protected $table = 'xy_pay'; /*
-
支付方式
-
@auth true
-
@throws \think\Exception
-
@throws \think\db\exception\DataNotFoundException
-
@throws \think\db\exception\ModelNotFoundException
-
@throws \think\exception\DbException
-
@throws \think\exception\PDOException */ public function index() { query = this->table)->alias('u'); where[] = ['u.tel','like','%' . input('tel/s','') . '%']; if(input
-