|
@@ -32,7 +32,7 @@ class Chuyutimedtask extends Api
|
|
// 如果$noNeedRight为空表示所有接口都需要验证权限才能请求无需鉴权的接口,*表示全部
|
|
// 如果$noNeedRight为空表示所有接口都需要验证权限才能请求无需鉴权的接口,*表示全部
|
|
protected $noNeedRight = ['*'];
|
|
protected $noNeedRight = ['*'];
|
|
|
|
|
|
- private function SmsTemplate($TemplateCode, $phoneNumber, $TemplateParam)
|
|
|
|
|
|
+ public function SmsTemplate($TemplateCode, $phoneNumber, $TemplateParam)
|
|
{
|
|
{
|
|
// 循环发送
|
|
// 循环发送
|
|
$sendBatchSmsRequest = [
|
|
$sendBatchSmsRequest = [
|
|
@@ -157,8 +157,8 @@ class Chuyutimedtask extends Api
|
|
// 回收月结账单
|
|
// 回收月结账单
|
|
$recovery_bill_model = new RecoveryBill();
|
|
$recovery_bill_model = new RecoveryBill();
|
|
$recovery_bill = $recovery_bill_model->alias('b')
|
|
$recovery_bill = $recovery_bill_model->alias('b')
|
|
- ->join('user u', 'b.b_user_id = u.id')
|
|
|
|
- ->field('b.id,b.b_user_id,u.mobile')
|
|
|
|
|
|
+ ->join('user u', 'b.c_user_id = u.id')
|
|
|
|
+ ->field('b.id,b.c_user_id,u.mobile')
|
|
->where('b.status', '=', 1)
|
|
->where('b.status', '=', 1)
|
|
->where('b.pay_timeout', '=', 0)
|
|
->where('b.pay_timeout', '=', 0)
|
|
->where('b.createtime', '<=', $overtime)
|
|
->where('b.createtime', '<=', $overtime)
|
|
@@ -201,8 +201,8 @@ class Chuyutimedtask extends Api
|
|
//餐具月结账单
|
|
//餐具月结账单
|
|
$tableware_bill_model = new TablewareBill();
|
|
$tableware_bill_model = new TablewareBill();
|
|
$tableware_bill = $tableware_bill_model->alias('b')
|
|
$tableware_bill = $tableware_bill_model->alias('b')
|
|
- ->join('user u', 'b.b_user_id = u.id')
|
|
|
|
- ->field('b.id,b.b_user_id,u.mobile')
|
|
|
|
|
|
+ ->join('user u', 'b.c_user_id = u.id')
|
|
|
|
+ ->field('b.id,b.c_user_id,u.mobile')
|
|
->where('b.status', '=', 1)
|
|
->where('b.status', '=', 1)
|
|
->where('b.pay_timeout', '=', 0)
|
|
->where('b.pay_timeout', '=', 0)
|
|
->where('b.createtime', '<=', $overtime)
|
|
->where('b.createtime', '<=', $overtime)
|
|
@@ -325,7 +325,9 @@ class Chuyutimedtask extends Api
|
|
}
|
|
}
|
|
|
|
|
|
$user_model = new User();
|
|
$user_model = new User();
|
|
- $users = $user_model->field('id,score,mobile')->where('score', '>', 0)->select();
|
|
|
|
|
|
+ $users = $user_model->field('id,score,mobile')
|
|
|
|
+ ->where(['status' => 'normal','cancel_shop'=>0])
|
|
|
|
+ ->where('score', '>', 0)->select(); // 账户未注销的
|
|
|
|
|
|
if (count($users) == 0) {
|
|
if (count($users) == 0) {
|
|
$this->success('无操作数据');
|
|
$this->success('无操作数据');
|