作者 何书鹏
1 个管道 的构建 通过 耗费 22 秒

商家每天可发布红包信息次数

... ... @@ -176,7 +176,7 @@ class Store extends Backend
"remark" => ['点击进入商户后台','#FF0000'],
);
$openid = Db::name('third')->where('user_id',$row->user_id)->value('openid');
$url = 'http://community.t.brotop.cn/admininfo.php';
$url = $this->request->root(true).'/admininfo.php/index/login';
$this->wxsendmessage($openid,$send_data,config('option.template')['store_pass'],$url);
// 城市或区县代理,可审核商铺数量减一
$group_id_arr = array_column($this->auth->getGroups(), 'group_id');
... ...
... ... @@ -535,7 +535,7 @@ class House extends Api
"keyword3" => date('Y年m月s日 H:i',time()),
"remark" => ['请尽快处理!','#FF0000'],
);
$url = 'http://community.t.brotop.cn/admininfo.php';
$url = $this->request->root(true).'/admininfo.php/index/login';
(new \app\index\controller\Ajax)->wxsendmessage('otlkQ0l4L3wsmz8dhDIbHJQVJnI8',$send_data,config('option.template')['examine'],$url);
$this->success('成功');
}
... ...
... ... @@ -706,6 +706,14 @@ class Store extends Api
$this->error('最多上传9张图片或1个视频及8张图片');
}
if($param['type'] == 1) {
// 商家每天可发布红包信息次数
$times = Db::name('store_inform')
->whereTime('create_time', 'today')
->where('store_id',$store['id'])
->count();
if($times > config('site.send_red_times')){
$this->error('商家每天发布红包信息不能超过'.config('site.send_red_times').'次');
}
$param['single'] = $param['red_package'] / $param['number'];
$param['score'] = bcadd(config('site.send_score'),$param['red_package'] * config('site.withdraw_percent'),2);
if($this->auth->score < $param['score']) {
... ... @@ -770,7 +778,7 @@ class Store extends Api
"keyword3" => date('Y年m月s日 H:i',time()),
"remark" => ['请尽快处理!','#FF0000'],
);
$url = 'http://community.t.brotop.cn/admininfo.php';
$url = $this->request->root(true).'/admininfo.php/index/login';
(new \app\index\controller\Ajax)->wxsendmessage('otlkQ0l4L3wsmz8dhDIbHJQVJnI8',$send_data,config('option.template')['examine'],$url);
if(!$result || !$res_user || !$res_log) {
Db::rollback();
... ...
... ... @@ -132,7 +132,7 @@ class Ajax extends Frontend
"keyword3" => date('Y年m月s日 H:i',time()),
"remark" => ['请尽快处理!','#FF0000'],
);
$url = 'http://community.t.brotop.cn/admininfo.php';
$url = $this->request->root(true).'/admininfo.php/index/login';
$this->wxsendmessage('otlkQ0l4L3wsmz8dhDIbHJQVJnI8',$send_data,config('option.template')['examine'],$url);
Db::commit();
} else {
... ...