修正验证码不能以0开头的问题
This commit is contained in:
@@ -41,7 +41,7 @@ class CodeService extends BaseService
|
||||
$template_code = "SMS_243055263";
|
||||
|
||||
$template_param = array();
|
||||
$template_param['code'] = (int)substr($generator->generate(),-4);
|
||||
$template_param['code'] = mt_rand(1,9) . (int)substr($generator->generate(),-3);
|
||||
|
||||
// 发送短信
|
||||
Dysms::sendSms($phone,$template_param,$template_code,1);
|
||||
|
||||
@@ -245,8 +245,26 @@ class DoctorAccountService extends BaseService
|
||||
return success($order_inquiry);
|
||||
}
|
||||
|
||||
// 获取医生提现记录列表
|
||||
public function getDoctorWithdrawalRecordList(): array
|
||||
{
|
||||
$user_info = $this->request->getAttribute("userInfo") ?? [];
|
||||
|
||||
$year = $this->request->input('year');
|
||||
|
||||
// 获取当年开始时间
|
||||
$start_date = $year.'-1-1 00:00:00';
|
||||
|
||||
// 获取当年结束时间
|
||||
$end_date = $year.'-12-31 23:59:59';
|
||||
|
||||
$created_at_params = [$start_date, $end_date];
|
||||
|
||||
$params = array();
|
||||
$params['doctor_id'] = $user_info['client_user_id'];
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取医生账户余额
|
||||
|
||||
Reference in New Issue
Block a user