当前位置:网站首页>太爱速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" => '',
边栏推荐
- R语言epiDisplay包ordinal.or.display函数获取有序logistic回归模型的汇总统计信息(变量对应的优势比及其置信区间、以及假设检验的p值)、write.csv函数保存csv
- Sanfeng cloud 0215 I often use
- Weekly recommended short videos: be alert to the confusion between "phenomena" and "problems"
- Financial judgment questions
- R语言使用epiDisplay包的dotplot函数通过点图的形式可视化不同区间数据点的频率、使用pch参数自定义指定点图数据点的形状
- 宏观视角看抖音全生态
- Principal component calculation weight
- R language ggplot2 visualization: gganimate creates a dynamic histogram animation (GIF), and displays the histogram and enter step by step along a given dimension in the animation_ Growth function and
- Localization through custom services in the shuttle application
- Introduction to easyclick database
猜你喜欢
每周推荐短视频:警惕“现象”与“问题”相互混淆
LiveData postValue会“丢”数据
Three. JS learning - basic operation of camera (learn from)
用WPF写一款开源方便、快捷的数据库文档查询、生成工具
Solution: you can ping others, but others can't ping me
Relational database management system of easyclick
Leetcode-128 最长连续序列
Principal component calculation weight
Memo - about C # generating barcode for goods
1、《创建您自己的NFT集合并发布一个Web3应用程序来展示它们》什么是NFT
随机推荐
磁盘的基本知识和基本命令
R language ggplot2 visualization: visualize the line graph and add customized Y-axis label information to the line graph using the labels function
Mise en place d'une plate - forme générale de surveillance et d'alarme, quelles sont les conceptions nécessaires dans l'architecture?
NSI packaging script add file details
Must see, time series analysis
Lumiprobe biomolecular quantification - qudye Protein Quantification Kit
Technology implementation and Architecture Practice
数据库基础:select基本查询语句
MySQL connection tools
Regular expression
Li Kou daily question - Day 32 -589 N × Preorder traversal of tree
R语言caTools包进行数据划分、scale函数进行数据缩放、class包的knn函数构建K近邻分类器、table函数计算混淆矩阵
Privacy sandbox is finally coming
R语言ggplot2可视化:可视化折线图、使用labs函数为折线图添加自定义的Y轴标签信息(customize y axis label)
R language ggplot2 visualization: gganimate package transition_ Time function to create dynamic scatter animation (GIF), shadow_ The wake function configures the gradient falloff tailing effect of the
[noip2015] jumping stone
540. Single element in ordered array / 1684 Count the number of consistent strings
R语言使用epiDisplay包的dotplot函数通过点图的形式可视化不同区间数据点的频率、使用pch参数自定义指定点图数据点的形状
R语言epiDisplay包ordinal.or.display函数获取有序logistic回归模型的汇总统计信息(变量对应的优势比及其置信区间、以及假设检验的p值)、write.csv函数保存csv
ACM MM 2022视频理解挑战赛视频分类赛道冠军AutoX团队技术分享