...
|
...
|
@@ -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();
|
...
|
...
|
|