|
|
@@ -2,7 +2,7 @@
|
|
|
|
|
|
namespace hd\controllers;
|
|
|
|
|
|
-use bizHd\item\classes\LjhApplyClass;
|
|
|
+use bizHd\ljh\classes\LjhApplyClass;
|
|
|
use common\components\dict;
|
|
|
use common\components\httpUtil;
|
|
|
use common\components\orderSn;
|
|
|
@@ -16,6 +16,14 @@ class LjhController extends BaseController
|
|
|
|
|
|
public $guestAccess = ['apply'];
|
|
|
|
|
|
+ public function actionDetail()
|
|
|
+ {
|
|
|
+ $get = Yii::$app->request->get();
|
|
|
+ $id = $get['id'] ?? 0;
|
|
|
+ $info = LjhApplyClass::getById($id, true);
|
|
|
+ util::success($info);
|
|
|
+ }
|
|
|
+
|
|
|
public function actionApply()
|
|
|
{
|
|
|
$connection = Yii::$app->db;
|
|
|
@@ -59,7 +67,14 @@ class LjhController extends BaseController
|
|
|
$orderSn = orderSn::getLjhApplySn();
|
|
|
$post['orderSn'] = $orderSn;
|
|
|
|
|
|
+ $price = bcsub(790, 20, 2);
|
|
|
+ $post['actPrice'] = $price;
|
|
|
+ $post['realPrice'] = $price;
|
|
|
+
|
|
|
$apply = LjhApplyClass::addApply($post);
|
|
|
+
|
|
|
+ $transaction->commit();
|
|
|
+
|
|
|
util::success(['info' => $apply]);
|
|
|
|
|
|
} catch (\Exception $exception) {
|