StatKhCgController.php 736 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. namespace ghs\controllers;
  3. use bizGhs\shop\classes\ShopAdminClass;
  4. use bizGhs\stat\classes\StatSaleClass;
  5. use Yii;
  6. use common\components\util;
  7. class StatKhCgController extends BaseController
  8. {
  9. //客户业绩,有多个地方,需要同步,搜索关键词 customYj ssh 20240628
  10. public function actionProfile()
  11. {
  12. ini_set('memory_limit', '2045M');
  13. set_time_limit(0);
  14. //查看财务的权限
  15. $lookMoney = ShopAdminClass::lookMoneyPower($this->shopAdmin, $this->shop);
  16. if ($lookMoney == 0) {
  17. util::fail('无法查看');
  18. }
  19. $mainId = $this->mainId;
  20. $respond = StatSaleClass::statCustomCg($mainId);
  21. util::success($respond);
  22. }
  23. }