StatCgController.php 596 B

1234567891011121314151617181920212223242526
  1. <?php
  2. namespace ghs\controllers;
  3. use bizGhs\shop\classes\ShopAdminClass;
  4. use bizGhs\stat\classes\StatCgClass;
  5. use Yii;
  6. use common\components\util;
  7. class StatCgController extends BaseController
  8. {
  9. public function actionProfit()
  10. {
  11. ini_set('memory_limit', '2045M');
  12. set_time_limit(0);
  13. //查看财务的权限
  14. $lookMoney = ShopAdminClass::lookMoneyPower($this->shopAdmin, $this->shop);
  15. if ($lookMoney == 0) {
  16. util::fail('无法查看');
  17. }
  18. $mainId = $this->mainId;
  19. $respond = StatCgClass::statCg($mainId);
  20. }
  21. }