Commit a093960dbddd901cefc6d85f562fc18c6f842962
1 parent
eb8d11e8
incust add bonuses
Showing
2 changed files
with
7 additions
and
3 deletions
Show diff stats
controllers/OrderController.php
| @@ -9,7 +9,7 @@ | @@ -9,7 +9,7 @@ | ||
| 9 | use artbox\order\labels\models\Label; | 9 | use artbox\order\labels\models\Label; |
| 10 | use artbox\order\models\OrderProduct; | 10 | use artbox\order\models\OrderProduct; |
| 11 | use artbox\order\labels\models\Payment; | 11 | use artbox\order\labels\models\Payment; |
| 12 | - use backend\components\Incust; | 12 | + use backend\incust\components\Incust; |
| 13 | use Yii; | 13 | use Yii; |
| 14 | use artbox\order\models\Order; | 14 | use artbox\order\models\Order; |
| 15 | use yii\web\Controller; | 15 | use yii\web\Controller; |
| @@ -217,7 +217,11 @@ | @@ -217,7 +217,11 @@ | ||
| 217 | * @param integer $id | 217 | * @param integer $id |
| 218 | * | 218 | * |
| 219 | * @return mixed | 219 | * @return mixed |
| 220 | + * @throws \GuzzleHttp\Exception\GuzzleException | ||
| 221 | + * @throws \backend\incust\components\IncustErrorLoginException | ||
| 222 | + * @throws \backend\incust\components\IncustException | ||
| 220 | * @throws \yii\base\InvalidConfigException | 223 | * @throws \yii\base\InvalidConfigException |
| 224 | + * @throws \yii\web\NotFoundHttpException | ||
| 221 | */ | 225 | */ |
| 222 | public function actionUpdate($id) | 226 | public function actionUpdate($id) |
| 223 | { | 227 | { |
| @@ -229,11 +233,10 @@ | @@ -229,11 +233,10 @@ | ||
| 229 | 'OrderProduct' | 233 | 'OrderProduct' |
| 230 | ) | 234 | ) |
| 231 | )) { | 235 | )) { |
| 232 | - //print_r(\Yii::$app->request->post('OrderProduct')); die(); | ||
| 233 | OrderProduct::saveItems(\Yii::$app->request->post('OrderProduct'), $id); | 236 | OrderProduct::saveItems(\Yii::$app->request->post('OrderProduct'), $id); |
| 234 | if ($model->paid and class_exists(Incust::className())) { | 237 | if ($model->paid and class_exists(Incust::className())) { |
| 235 | /** | 238 | /** |
| 236 | - * @var \backend\components\Incust $incust; | 239 | + * @var \backend\incust\components\Incust $incust; |
| 237 | */ | 240 | */ |
| 238 | $incust = \Yii::$app->get('incust'); | 241 | $incust = \Yii::$app->get('incust'); |
| 239 | $check = $incust->generateCheck($model); | 242 | $check = $incust->generateCheck($model); |