main
parent
e5dc34f01c
commit
0d76d0846d
@ -0,0 +1,26 @@ |
||||
<?php |
||||
// +---------------------------------------------------------------------- |
||||
// | CRMEB [ CRMEB赋能开发者,助力企业发展 ] |
||||
// +---------------------------------------------------------------------- |
||||
// | Copyright (c) 2016~2022 https://www.crmeb.com All rights reserved. |
||||
// +---------------------------------------------------------------------- |
||||
// | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权 |
||||
// +---------------------------------------------------------------------- |
||||
// | Author: CRMEB Team <admin@crmeb.com> |
||||
// +---------------------------------------------------------------------- |
||||
namespace app\common\dao\store; |
||||
|
||||
use app\common\dao\BaseDao; |
||||
use app\common\model\store\Lottery; |
||||
use app\common\model\store\LotteryRecord; |
||||
|
||||
class LotteryRecordDao extends BaseDao |
||||
{ |
||||
|
||||
|
||||
protected function getModel(): string |
||||
{ |
||||
return LotteryRecord::class; |
||||
} |
||||
|
||||
} |
@ -0,0 +1,30 @@ |
||||
<?php |
||||
// +---------------------------------------------------------------------- |
||||
// | CRMEB [ CRMEB赋能开发者,助力企业发展 ] |
||||
// +---------------------------------------------------------------------- |
||||
// | Copyright (c) 2016~2022 https://www.crmeb.com All rights reserved. |
||||
// +---------------------------------------------------------------------- |
||||
// | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权 |
||||
// +---------------------------------------------------------------------- |
||||
// | Author: CRMEB Team <admin@crmeb.com> |
||||
// +---------------------------------------------------------------------- |
||||
namespace app\common\model\store; |
||||
|
||||
use app\common\model\BaseModel; |
||||
|
||||
|
||||
class LotteryRecord extends BaseModel |
||||
{ |
||||
|
||||
public static function tablePk(): string |
||||
{ |
||||
return 'id'; |
||||
} |
||||
|
||||
public static function tableName(): string |
||||
{ |
||||
return 'lottery_record'; |
||||
} |
||||
|
||||
|
||||
} |
@ -0,0 +1,68 @@ |
||||
<?php |
||||
// +---------------------------------------------------------------------- |
||||
// | CRMEB [ CRMEB赋能开发者,助力企业发展 ] |
||||
// +---------------------------------------------------------------------- |
||||
// | Copyright (c) 2016~2022 https://www.crmeb.com All rights reserved. |
||||
// +---------------------------------------------------------------------- |
||||
// | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权 |
||||
// +---------------------------------------------------------------------- |
||||
// | Author: CRMEB Team <admin@crmeb.com> |
||||
// +---------------------------------------------------------------------- |
||||
namespace app\common\repositories\store; |
||||
|
||||
use app\common\dao\store\GuaranteeDao; |
||||
use app\common\dao\store\LotteryDao; |
||||
use app\common\dao\store\LotteryRecordDao; |
||||
use app\common\repositories\BaseRepository; |
||||
use app\common\repositories\user\UserAssetsRepository; |
||||
|
||||
class LotteryRecordRepository extends BaseRepository |
||||
{ |
||||
/** |
||||
* @var LotteryRecordDao |
||||
*/ |
||||
protected $dao; |
||||
|
||||
|
||||
/** |
||||
* GuaranteeRepository constructor. |
||||
* @param LotteryRecordDao $dao |
||||
*/ |
||||
public function __construct(LotteryRecordDao $dao) |
||||
{ |
||||
$this->dao = $dao; |
||||
} |
||||
|
||||
/** |
||||
* TODO 平台列表 |
||||
* @param $where |
||||
* @param $page |
||||
* @param $limit |
||||
* @author Qinii |
||||
* @day 5/17/21 |
||||
*/ |
||||
public function create($data) |
||||
{ |
||||
if($data['type'] == 1){ |
||||
app(UserAssetsRepository::class)->lottery($data['uid'], $data['count']); |
||||
} |
||||
return $this->dao->create($data); |
||||
} |
||||
|
||||
|
||||
/** |
||||
* TODO 获取详情 |
||||
* @param $id |
||||
* @return array|\think\Model|null |
||||
* @author Qinii |
||||
* @day 5/17/21 |
||||
*/ |
||||
public function get($id) |
||||
{ |
||||
$where = [ |
||||
$this->dao->getPk() => $id, |
||||
]; |
||||
$ret = $this->dao->getWhere($where); |
||||
return $ret; |
||||
} |
||||
} |
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1 +0,0 @@ |
||||
.el-dropdown-link[data-v-7a1aa09a]{cursor:pointer;color:var(--prev-color-primary);font-size:12px}.el-icon-arrow-down[data-v-7a1aa09a]{font-size:12px} |
@ -1 +0,0 @@ |
||||
[data-v-48774f7a]{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.title[data-v-48774f7a]{margin-bottom:-19px!important;padding-bottom:17px!important}.left[data-v-48774f7a]{min-width:390px;min-height:550px;position:relative;padding-left:40px}.top[data-v-48774f7a]{position:absolute;top:0}.bottom[data-v-48774f7a],.textbot[data-v-48774f7a]{position:absolute;bottom:0}.textbot[data-v-48774f7a]{left:59px;width:100%}.active[data-v-48774f7a]{border:1px solid #44b549!important;color:#44b549!important}.li[data-v-48774f7a]{float:left;width:93px;line-height:48px;border:1px solid #e7e7eb;background:#fafafa;text-align:center;cursor:pointer;color:#999;position:relative}.text[data-v-48774f7a]{height:50px;overflow:hidden;text-overflow:ellipsis;-ms-text-overflow:ellipsis;white-space:nowrap;padding:0 5px}.text[data-v-48774f7a]:hover{color:#000}.add[data-v-48774f7a]{position:absolute;bottom:65px;width:100%;line-height:48px;border:1px solid #e7e7eb;background:#fafafa}.arrow[data-v-48774f7a]{position:absolute;bottom:-16px;left:36px;width:0;height:0;font-size:0;border:8px solid;border-color:#fff #f4f5f9 #f4f5f9 #f4f5f9}.tianjia[data-v-48774f7a]{position:absolute;bottom:115px;width:100%;line-height:48px;background:#fafafa}.addadd[data-v-48774f7a]{width:100%;line-height:48px;border:1px solid #e7e7eb;background:#fafafa;height:48px}.right[data-v-48774f7a]{background:#fff;min-height:400px}.spwidth[data-v-48774f7a]{width:100%} |
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1 +0,0 @@ |
||||
.card_container[data-v-8d6f14c6]{margin-top:150px;text-align:center} |
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue