去除手机号验证

This commit is contained in:
2023-03-14 19:02:09 +08:00
parent 833acbbc99
commit fa4e3e0382
4 changed files with 192 additions and 21 deletions
+1
View File
@@ -532,6 +532,7 @@ class CallBackController extends AbstractController
// 发送短信消息
// 告知处方平台
return $server->serve();
}
+24 -19
View File
@@ -14,6 +14,7 @@ use App\Services\UserDoctorService;
use App\Services\UserService;
use App\Utils\Http;
use App\Utils\Log;
use Extend\Prescription\Prescription;
use Extend\TencentIm\Account;
use Extend\TencentIm\Friend;
use Extend\TencentIm\Group;
@@ -104,25 +105,25 @@ class UserController extends AbstractController
// return $this->response->json($pay_config);
// 发起退款
$WechatPay = new WechatPay(1,2);
$params = array();
$params['order_inquiry_id'] = 1;
$order_inquiry = OrderInquiry::getOne($params);
$options = array();
$options['transaction_id'] = "4200001756202303145016495897";
$options['out_refund_no'] = "123456";
$options['reason'] = "退款原因";
$options['amount'] = [
'refund' => (int)1,
'total' => (int)1,
'currency' => "CNY",
];
$result = $WechatPay->refund($options);
dump($result);
// $WechatPay = new WechatPay(1,2);
//
// $params = array();
// $params['order_inquiry_id'] = 1;
// $order_inquiry = OrderInquiry::getOne($params);
//
//
// $options = array();
// $options['transaction_id'] = "4200001756202303145016495897";
// $options['out_refund_no'] = "123456";
// $options['reason'] = "退款原因";
// $options['amount'] = [
// 'refund' => (int)1,
// 'total' => (int)1,
// 'currency' => "CNY",
// ];
//
// $result = $WechatPay->refund($options);
// dump($result);
// 创建账号
$account = new Account();
@@ -234,5 +235,9 @@ class UserController extends AbstractController
// return fail(HttpEnumCode::HTTP_ERROR, $res);
// }
// 对接处方平台
$Prescription = new Prescription();
$token = $Prescription->getProd();
dump($token);
}
}
+2 -2
View File
@@ -106,7 +106,7 @@ class PatientFamilyRequest extends FormRequest
'card_name' => 'required',
'type' => ['required',Rule::in(['1', '2', '3', '4'])],
'id_number' => "required",
'mobile' => ['required','regex:/^1(3\d|4[5-9]|5[0-35-9]|6[2567]|7[0-8]|8\d|9[0-35-9])\d{8}$/'],
'mobile' => ['sometimes','regex:/^1(3\d|4[5-9]|5[0-35-9]|6[2567]|7[0-8]|8\d|9[0-35-9])\d{8}$/'],
'relation' => ['required',Rule::in(['1', '2', '3', '4', '5', '6'])],
'city_id' => 'required_with:province_id',
'province_id' => 'required_with:city_id,county_id',
@@ -137,7 +137,7 @@ class PatientFamilyRequest extends FormRequest
'type.required' => "请选择证件类型",
'type.in' => "证件类型错误",
'id_number.required' => "请选择证件号",
'mobile.required' => "手机号不能为空",
// 'mobile.required' => "手机号不能为空",
'mobile.regex' => "手机号格式错误",
'relation.required' => "请选择患者关系",
'relation.in' => "患者关系错误",