企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
```` public function addOrder(Request $request) { //获取参数 $types = $request->param('types'); $shop_num = $request->param('shop_num')?:1; $user_type = 'USER'; $user_id = $request->user->id; $total_price = $request->param('total_price'); $fitness_id = $request->param('fitness_id'); $company_id = $request->param('company_id'); $goods_name = '微信钱包充值'; $goods_image = '/uploads/20181213/f12a402b7e7b61332f7c8da7b5e6c6b9.png'; $spu_id = $request->param('spu_id'); $sku_id = $request->param('sku_id'); $goods_price = $request->param('goods_price'); $goods_num = $request->param('goods_num')?:1; //前置方法-验证参数 $this->frontOf($types, $total_price, $fitness_id, $company_id); //添加订单 $shopOrders = \app\adminapi\model\ShopOrders::insertOrder($user_id, $types, $user_type, $total_price, $company_id , $subject = 'nintynine电商平台', $message = '', $consignee = '', $email = '', $phone = '' , $country = '', $province = '', $city = '', $county = '', $address = ''); $shopOrdersGoods = ShopOrdersGoods::insertOrderGoods($shopOrders, $spu_id, $sku_id, $goods_name, $goods_price, $goods_num, $goods_image, $goods_spec_values = '', $company_id); } ````