作者 xwp
1 个管道 的构建 通过 耗费 9 秒

后台修改

... ... @@ -126,6 +126,10 @@ class Order extends Backend
}
$product = $product->toArray();
$productCourse = new \app\admin\model\ProductCoures();
$productCourse = $productCourse->where(['product_id'=>$params['product_id']])->select();
$product['product_course'] = $productCourse;
$now = date('Y-m-d H:i:s');
$order_id = Random::uuid();
... ...
... ... @@ -78,6 +78,10 @@ class User extends Backend
if(!empty($product)){
$product = $product->toArray();
$productCourse = new \app\admin\model\ProductCoures();
$productCourse = $productCourse->where(['product_id'=>$product_id])->select();
$product['product_course'] = $productCourse;
$order_id = Random::uuid();
$order_id = str_replace("-","",$order_id);
... ...