InviteAssetController.php 539 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. /**
  3. * 邀请有礼
  4. */
  5. namespace ghs\controllers;
  6. use bizHd\invite\services\InviteAssetService;
  7. use common\components\util;
  8. use Yii;
  9. class InviteAssetController extends BaseController
  10. {
  11. //详情 ssh 2019.12.18
  12. public function actionDetail()
  13. {
  14. $asset = InviteAssetService::getAsset($this->sjId);
  15. util::success($asset);
  16. }
  17. //修改设置 ssh 2019.12.18
  18. public function actionUpdate()
  19. {
  20. $post = Yii::$app->request->post();
  21. InviteAssetService::updateAsset($this->sjId, $post);
  22. util::complete('修改成功');
  23. }
  24. }