当前位置:网站首页>太爱速M源码搭建,巅峰小店APP溢价寄卖源码分享
太爱速M源码搭建,巅峰小店APP溢价寄卖源码分享
2022-07-01 18:38:00 【InfoQ】
try {
Db::startTrans();
$order_blind_box_ids = [];
foreach($blind_box_items as $blind_box_item) {
$product = Mage")->find();
$blind_box_product = ModelBlindBoxProduct::with(["tag" => function ($query) {
$query->bind(["tag_img" => "image"]);
}])->where(["blind_box_id" => $blind_box_item->blind_box_id, "product_id" => $blind_box_item->product_id])->find();
$product->tag_image = $blind_box_product->tag_img;
$order_code = date("YmdHis") . substr($user_id . rand(1000000, 9999999), 0, 8);
$order_blind_box = ModelOrderBlindBox::create([
"get_order_id" => 0,
"user_id" => $user_id,
"order_code" => $order_code,
"blind_box_item_id" => $blind_box_item->id,
"product_id" => $product->product_id,
"product_name" => $product->name,
"product_image" => $product->image,
"product_price" => $product->price,
"blind_box_price" => $blind_box->price,
"user_money" => 0,
"bonus_amount" => 0,
"pay_money" => $blind_box->price,
"payment_type" => '',
"order_state" => 99,
"address" => '',
"shipping_state" => 0,
"shipping_time" => 0,
"retrieve_time" => 0,
"retrieve_amount" => 0,
"regret_number" => 0
]);
$order_blind_box_ids[] = $order_blind_box->id;
if (!$order_blind_box->isEmpty()) {
$payment_code = date("YmdHis") . substr($user_id . rand(1000000, 9999999), 0, 8);
$payment_note = "购买盲盒";
ModelPaymentLog::create([
"payment_code" => $payment_code,
"user_id" => $user_id,
"order_blind_box_id"=> $order_blind_box->id,
"blind_box_item_id" => $blind_box_item->id,
"blind_box_price" => $price,
"bonus_id" => $bonus_id,
"bonus_amount" => $bonus_amount,
"pay_money" => $blind_box->price,
"note" => $payment_note,
"transaction_id" => '',边栏推荐
- Lumiprobe 双功能交联剂丨Sulfo-Cyanine5 双-NHS 酯
- Lumiprobe lumizol RNA extraction reagent solution
- [image denoising] matlab code for removing salt and pepper noise based on fast and effective multistage selective convolution filter
- Unity learning fourth week
- The ultimate version of the 13th simulation of the single chip microcomputer provincial competition of the Blue Bridge Cup
- What designs are needed in the architecture to build a general monitoring and alarm platform
- AI 训练速度突破摩尔定律;宋舒然团队获得RSS 2022最佳论文奖
- 12 data dimensioning processing methods
- R语言ggplot2可视化:gganimate创建动态柱状图动画(gif)、在动画中沿给定维度逐步显示柱状图、enter_grow函数和enter_fade函数控制运动内插退出(渐变tweening)
- Sum of three numbers
猜你喜欢

用WPF写一款开源方便、快捷的数据库文档查询、生成工具

6款红黄黑榜摄像头评测:谁最安全?谁画质好?从此让你不再踩雷

研究了11种实时聊天软件,我发现都具备这些功能…

Unity learning fourth week

搭建一个通用监控告警平台,架构上需要有哪些设计

Halcon图片标定,使得后续图片处理过后变成与模板图片一样

Weekly recommended short videos: be alert to the confusion between "phenomena" and "problems"

Leetcode-160 intersecting linked list

Lumiprobe 双功能交联剂丨Sulfo-Cyanine5 双-NHS 酯

docker 部署mysql8.0
随机推荐
About enterprise middle office planning and it architecture microservice transformation
因子分析怎么计算权重?
R语言使用epiDisplay包的aggregate函数将数值变量基于因子变量拆分为不同的子集,计算每个子集的汇总统计信息
The R language cartools package divides the data, the scale function scales the data, the KNN function of the class package constructs the k-nearest neighbor classifier, and the table function calcula
宏观视角看抖音全生态
力扣每日一题-第32天-589.N×树的前序遍历
Lumiprobe non fluorescent alkyne EU (5-ethynyluridine)
Facebook聊单,SaleSmartly有妙招!
Solution: you can ping others, but others can't ping me
Leetcode-128 longest continuous sequence
2020,最新手机号码手机验证正则表达式,持续更新
Force buckle day33
Three.js学习-相机Camera的基本操作(了解向)
R语言使用epiDisplay包的tableStack函数制作统计汇总表格(基于目标变量分组的描述性统计、假设检验等)、不设置by参数则计算数据框指定数据列范围的基础描述性统计信息
What designs are needed in the architecture to build a general monitoring and alarm platform
必看,时间序列分析
Privacy sandbox is finally coming
2、《创建您自己的NFT集合并发布一个Web3应用程序来展示它们》启动并运行您的本地环境
Lumiprobe Lumizol RNA 提取试剂解决方案
Must see, time series analysis