xhUserGrowthService.php 352 B

1234567891011121314151617181920
  1. <?php
  2. namespace common\services;
  3. use common\components\dict;
  4. use Yii;
  5. use common\models\xhUserGrowth;
  6. class xhUserGrowthService {
  7. public static function add($data)
  8. {
  9. return xhUserGrowth::add($data);
  10. }
  11. public static function getById($id)
  12. {
  13. $integral = xhUserGrowth::find()->where(['id' => $id])->asArray()->one();
  14. return $integral;
  15. }
  16. }