当前位置:网站首页>Taiaisu M source code construction, peak store app premium consignment source code sharing
Taiaisu M source code construction, peak store app premium consignment source code sharing
2022-07-01 18:54: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 = " Buy blind boxes ";
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" => '',边栏推荐
- 解决方案:可以ping别人,但是别人不能ping我
- 1、《创建您自己的NFT集合并发布一个Web3应用程序来展示它们》什么是NFT
- Case study on comprehensive competitiveness of principal components
- Leetcode-160 intersecting linked list
- How to manage 1000 anchors by one person?
- JS find the next adjacent element of the number in the array
- R language uses the transmute function of dplyr package to calculate the moving window mean value of the specified data column in dataframe data, and uses ggplot2 package to visualize the line graph b
- 如何使用物联网低代码平台进行个人设置?
- R语言ggplot2可视化:gganimate创建动态柱状图动画(gif)、在动画中沿给定维度逐步显示柱状图、enter_grow函数和enter_fade函数控制运动内插退出(渐变tweening)
- A wonderful time to buy and sell stocks
猜你喜欢

如何在自有APP内实现小程序实现连麦直播

Mysql database of easyclick

1380. Lucky number in matrix / 1672 Total assets of the richest customers

What designs are needed in the architecture to build a general monitoring and alarm platform

实例讲解将Graph Explorer搬上JupyterLab

Leetcode-128 longest continuous sequence

What if the reliability coefficient is low? How to calculate the reliability coefficient?

1、《创建您自己的NFT集合并发布一个Web3应用程序来展示它们》什么是NFT

Salesmartly has some tricks for Facebook chat!

搭建一个通用监控告警平台,架构上需要有哪些设计
随机推荐
AI 训练速度突破摩尔定律;宋舒然团队获得RSS 2022最佳论文奖
PriorityQueue的用法和底层实现原理
Memo - about C # generating barcode for goods
Search 2D matrix 2
R language uses the DOTPLOT function of epidisplay package to visualize the frequency of data points in different intervals in the form of point graph, and uses PCH parameters to customize the shape o
隐私沙盒终于要来了
R语言ggplot2可视化:gganimate创建动态柱状图动画(gif)、在动画中沿给定维度逐步显示柱状图、enter_grow函数和enter_fade函数控制运动内插退出(渐变tweening)
如何在自有APP内实现小程序实现连麦直播
Lumiprobe non fluorescent alkyne EU (5-ethynyluridine)
Altair HyperWorks 2022软件安装包和安装教程
The R language uses the tablestack function of epidisplay package to make statistical summary tables (descriptive statistics based on the grouping of target variables, hypothesis testing, etc.). If th
1. "Create your own NFT collections and publish a Web3 application to show them." what is NFT
Find all missing numbers in the array
golang 错误处理
How to find customers for investment attraction in industrial parks
Leetcode-21 combines two ordered linked lists
R language uses follow up of epidisplay package Plot function visualizes the longitudinal follow-up map of multiple ID (case) monitoring indicators, and uses n.of The lines parameter specifies the num
记一次 .NET 差旅管理后台 CPU 爆高分析
每周推薦短視頻:警惕“現象”與“問題”相互混淆
6款红黄黑榜摄像头评测:谁最安全?谁画质好?从此让你不再踩雷