Compare commits
2 Commits
1497d3f7a0
...
7a77fe39a1
| Author | SHA1 | Date |
|---|---|---|
|
|
7a77fe39a1 | |
|
|
6d182d2c5b |
|
|
@ -24,6 +24,7 @@ class FenxiaoAccount extends BaseModel
|
||||||
'points' => '积分',
|
'points' => '积分',
|
||||||
'contribution' => '贡献值',
|
'contribution' => '贡献值',
|
||||||
'house_purchase' => '购房券',
|
'house_purchase' => '购房券',
|
||||||
|
'diamond'=>'钻石'
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -35,7 +36,7 @@ class FenxiaoAccount extends BaseModel
|
||||||
* @param $relate_id
|
* @param $relate_id
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public function addAccount($fenxiao_id, $fenxiao_name, $type = 'order', $money, $relate_id, $from_type = 'account',$remarks='')
|
public function addAccount($fenxiao_id, $fenxiao_name, $type = 'diamond', $money, $relate_id, $from_type = 'diamond',$remarks='')
|
||||||
{
|
{
|
||||||
$account_no = date('YmdHi') . rand(1000, 9999);
|
$account_no = date('YmdHi') . rand(1000, 9999);
|
||||||
$data = array(
|
$data = array(
|
||||||
|
|
|
||||||
|
|
@ -35,7 +35,23 @@ return [
|
||||||
// 缓存有效期 0表示永久缓存
|
// 缓存有效期 0表示永久缓存
|
||||||
'expire' => 604800,
|
'expire' => 604800,
|
||||||
// 缓存标签前缀
|
// 缓存标签前缀
|
||||||
'tag_prefix' => 'miaogou_cdlfjy_com_',
|
'tag_prefix' => 'teg:',
|
||||||
|
'prefix' => 'miaogou_cdlfjy_com_cache_',
|
||||||
|
],
|
||||||
|
// redis缓存 并发处理
|
||||||
|
'redis_concurrent' => [
|
||||||
|
// 驱动方式
|
||||||
|
'type' => 'redis',
|
||||||
|
// 服务器地址
|
||||||
|
'host' => '127.0.0.1',
|
||||||
|
// redis密码
|
||||||
|
'password' => '',
|
||||||
|
//选择Db区块
|
||||||
|
'select' => 9,
|
||||||
|
// 缓存有效期 0表示永久缓存
|
||||||
|
'expire' => 0,
|
||||||
|
// 缓存标签前缀
|
||||||
|
'prefix' => 'miaogou_cdlfjy_com_concurrent_',
|
||||||
],
|
],
|
||||||
// 更多的缓存连接
|
// 更多的缓存连接
|
||||||
],
|
],
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue