作者 sgj
1 个管道 的构建 失败 耗费 0 秒

备注

... ... @@ -185,6 +185,7 @@ class MemberCenterController extends RestBaseController
* @param name:front_card type:str require:1 other: desc:身份证正面照
* @param name:reverse_card type:str require:1 other: desc:身份证背面照
* @param name:photo type:str require:1 other: desc:照片
* @param name:nickname type:str require:1 other: desc:昵称
*/
public function submit_form(){
$user_id = $this->getUserId();
... ... @@ -220,6 +221,7 @@ class MemberCenterController extends RestBaseController
'front_card' => 'require',
'reverse_card' => 'require',
'photo' => 'require',
'nickname' => 'require',
]);
$validate->message([
'name' => '缺少参数name',
... ... @@ -305,6 +307,7 @@ class MemberCenterController extends RestBaseController
'photo' => $param['photo'],
'status' => 1,
'user_id' => $user_id,
'nickname' => $param['nickname'],
];
$form_id=input('form_id');
if (!empty($form_id)){
... ...