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 | 9 | use artbox\order\labels\models\Label; |
| 10 | 10 | use artbox\order\models\OrderProduct; |
| 11 | 11 | use artbox\order\labels\models\Payment; |
| 12 | - use backend\components\Incust; | |
| 12 | + use backend\incust\components\Incust; | |
| 13 | 13 | use Yii; |
| 14 | 14 | use artbox\order\models\Order; |
| 15 | 15 | use yii\web\Controller; |
| ... | ... | @@ -217,7 +217,11 @@ |
| 217 | 217 | * @param integer $id |
| 218 | 218 | * |
| 219 | 219 | * @return mixed |
| 220 | + * @throws \GuzzleHttp\Exception\GuzzleException | |
| 221 | + * @throws \backend\incust\components\IncustErrorLoginException | |
| 222 | + * @throws \backend\incust\components\IncustException | |
| 220 | 223 | * @throws \yii\base\InvalidConfigException |
| 224 | + * @throws \yii\web\NotFoundHttpException | |
| 221 | 225 | */ |
| 222 | 226 | public function actionUpdate($id) |
| 223 | 227 | { |
| ... | ... | @@ -229,11 +233,10 @@ |
| 229 | 233 | 'OrderProduct' |
| 230 | 234 | ) |
| 231 | 235 | )) { |
| 232 | - //print_r(\Yii::$app->request->post('OrderProduct')); die(); | |
| 233 | 236 | OrderProduct::saveItems(\Yii::$app->request->post('OrderProduct'), $id); |
| 234 | 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 | 241 | $incust = \Yii::$app->get('incust'); |
| 239 | 242 | $check = $incust->generateCheck($model); | ... | ... |