| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- <?php
- /**
- * 描述.
- *
- * @author nj
- * @date 2021-05-18 20:46:19
- */
- namespace App\Models\Mysql;
- class AgentAttrsModel extends BaseMysql
- {
- protected $table = 'agent_attrs';
- /**
- * UUID 键名
- * @var string
- */
- protected $uuidKeyName = 'agent_uid';
- /**
- * 自定义字段.
- *
- * todo 暂时没用,后面要用上
- *
- * @var array
- */
- public $appends = ['td_withdraw_money'];
- public function getCommonSubffixFields()
- {
- $fields = array_merge(self::getCommonOrderSubffixFields(), self::getCommonUsersSubffixFields());
- return $fields;
- }
- public function getCommonOrderSubffixFields()
- {
- $fileds = [
- 'order_total', 'order_success', 'order_failed', 'order_money', 'order_success_money',
- 'android_total', 'android_success', 'android_failed', 'android_money', 'android_success_money',
- 'ios_total', 'ios_success', 'ios_failed', 'ios_money', 'ios_success_money',
- 'h5_total', 'h5_success', 'h5_failed', 'h5_money', 'h5_success_money',
- 'deduction_total', 'deduction_success', 'deduction_failed', 'deduction_money', 'deduction_success_money',
- 'commission_money'
- ];
- return $fileds;
- }
- public function getCommonUsersSubffixFields()
- {
- $fields = [
- 'users_total', 'users_android_total', 'users_ios_total', 'users_h5_total',
- 'users_deduction', 'users_android_deduction', 'users_ios_deduction', 'users_h5_deduction',
- ];
- return $fields;
- }
- }
|