Commit c404acb1 authored by clone's avatar clone

bug

parent 1d841174
...@@ -132,6 +132,9 @@ class Register extends Basic ...@@ -132,6 +132,9 @@ class Register extends Basic
"wx_union_id" => "asdfasfasdf", "wx_union_id" => "asdfasfasdf",
"phone" => 25983, "phone" => 25983,
);*/ );*/
if (!isset($params["phone"])) {
return $this->response("101", "手机号为必填字段");
}
$checkResult = $this->validate($params, "RegisterValidate.bind"); $checkResult = $this->validate($params, "RegisterValidate.bind");
if (true !== $checkResult) { if (true !== $checkResult) {
return $this->response("101", $checkResult); return $this->response("101", $checkResult);
......
...@@ -39,6 +39,6 @@ class RegisterValidate extends Validate ...@@ -39,6 +39,6 @@ class RegisterValidate extends Validate
'verify' => [ 'phone', 'device_id' ], 'verify' => [ 'phone', 'device_id' ],
'register' => [ 'phone', 'device_id', 'code' ], 'register' => [ 'phone', 'device_id', 'code' ],
'removeBind' => [ 'user_id', 'buyer_id' ], 'removeBind' => [ 'user_id', 'buyer_id' ],
'bind' => [ 'user_id', 'wx_union_id' ], 'bind' => [ 'wx_union_id','phone' ],
]; ];
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment