ShopService.php 633 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * Author: 芸众商城 www.yunzshop.com
  5. * Date: 2017/2/23
  6. * Time: 下午5:52
  7. */
  8. namespace app\frontend\modules\shop\services;
  9. use app\common\exceptions\AppException;
  10. use app\common\models\UniAccount;
  11. use app\frontend\modules\shop\services\models\ShopModel;
  12. class ShopService
  13. {
  14. private static $_current_shop;
  15. //todo 待实现
  16. public static function getCurrentShopModel(){
  17. $result = new UniAccount(['uniacid'=>\YunShop::app()->uniacid]);
  18. if(!isset($result)){
  19. throw new AppException('读取商城信息出错');
  20. }
  21. return $result;
  22. }
  23. }