Webconfig.php 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <?php
  2. /**
  3. * 厦门云联储网络科技有限公司
  4. * https://www.baokuaiyun.com
  5. * Copyright (c) 2023 爆块云 All rights reserved.
  6. */
  7. namespace app\models;
  8. use app\constants\OptionSetting;
  9. use app\modules\alliance\models\CurrencyForm;
  10. use app\plugins\scanCodePay\models\Order as ScanCodePayOrder;
  11. use app\plugins\scanCodePay\models\Order as ScanOrder;
  12. use yii\db\ActiveRecord;
  13. use yii\behaviors\TimestampBehavior;
  14. use Yii;
  15. use yii\helpers\Json;
  16. /**
  17. * This is the model class for table "{{%webconfig}}".
  18. *
  19. * @property integer $id
  20. * @property string $user_percent
  21. * @property string $agent_percent
  22. * @property string $tx_amount
  23. * @property string $upper_huifu_id
  24. * @property integer $is_currency_show
  25. * @property integer $beishu_num
  26. * @property string $award_type
  27. * @property integer $alice_channel_id
  28. * @property string $alice_huifu_id
  29. * @property string $wechat_app_currency_name
  30. * @property string $imageurl
  31. * @property integer $imageurl_time
  32. */
  33. class Webconfig extends \yii\db\ActiveRecord
  34. {
  35. /**
  36. * @inheritdoc
  37. */
  38. public static function tableName()
  39. {
  40. return '{{%webconfig}}';
  41. }
  42. /**
  43. * @inheritdoc
  44. */
  45. public function rules()
  46. {
  47. return [
  48. [['user_percent', 'agent_percent', 'tx_amount'], 'number'],
  49. [['is_currency_show', 'beishu_num', 'alice_channel_id', 'imageurl_time'], 'integer'],
  50. [['imageurl'], 'string'],
  51. [['upper_huifu_id', 'alice_huifu_id', 'wechat_app_currency_name'], 'string', 'max' => 255],
  52. [['award_type'], 'string', 'max' => 255],
  53. ];
  54. }
  55. }