竞拍秒购电商核心源码分享

竞拍秒购电商核心源码分享

发布商家
东莞楚恒辰诺网络科技有限公司
联系人
杨小花(先生)
职位
商业模式架构导师
电话
18665158422
手机
18665158422
微信
yqm106106

竞拍秒购电商核心源码分享seline; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; overflow-wrap: break-word;">竞拍秒购电商核心源码分享seline; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; overflow-wrap: break-word;">竞拍秒购电商核心源码分享seline; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; overflow-wrap: break-word;">竞拍秒购电商核心源码分享seline; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; overflow-wrap: break-word;">竞拍秒购电商核心源码分享seline; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; overflow-wrap: break-word;">竞拍秒购电商核心源码分享seline; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; overflow-wrap: break-word;">竞拍秒购电商核心源码分享

if(!$spirit_id)return app(‘json’)->fail(‘参数错误’);
$data1 = YueOrder::where([‘uid’=>$request->uid(),’cid’=>$spirit_id,’is_del’=>0])->whereDay(‘add_time’)->find();
if($data1 ) return app(‘json’)->fail(‘重复预约’);
$quYuInfo = ActiveModel::find($spirit_id);
$user = $request->user();
if($quYuInfo->helpCard > $user->help_card)return app(‘json’)->fail(‘帮抢卡不足’);
$user = $request->user();
if($quYuInfo->jifen > $user[‘integral’] )return app(‘json’)->fail(‘积分不足’);

$cache_name = ‘cache_purchase_’.$request->uid();
if( cache($cache_name) )
return app(‘json’)->fail(‘请勿频繁请求’);
cache($cache_name,1,2);
$redis = Redis::instance();
$s1 = ExperienceModel::where([‘uid’=>$request->uid(),’status’=>1,’order_id’=>0])->where(‘end_time’,’>’,time())->find();
if(!$s1)return app(‘json’)->fail(‘该场次没有预约记录’);
$s2 =ExperienceModel::where([‘uid’=>$request->uid(),’status’=>1])->where(‘order_id’,’>’,0)->where(‘end_time’,’>’,time())->find();
if($s2)return app(‘json’)->fail(‘已经抢过了’);//判断预约的记录是否抢购过
$yid = ExperienceModel::where([‘status’=>1,’order_id’=>0])->where(‘end_time’,’>’,time())->where(‘uid’,$request->uid())->value(‘id’);
$pid = $redis->rPop(‘T’);
if(!$pid)return app(‘json’)->fail(‘没有抢到,请稍后再试’);


人气
124
发布时间
2023-11-29 02:51
所属行业
小程序开发
编号
40481246
我公司的其他供应信息
相关竞拍产品
优质商家推荐 拨打电话