作者 xwp
1 个管道 的构建 通过 耗费 1 秒

注册记录手机号关系

... ... @@ -187,14 +187,15 @@ class User extends Backend
if(!empty($mobile_col)){
//处理已有手机号
$mobile = $currentSheet->getCellByColumnAndRow($col, $currentRow)->getValue();
echo $mobile;
$user = new \app\admin\model\User;
$user = $user->where(['mobile'=>$mobile,'openid' => ['<>','']])->find();
if(!empty($user)){
echo $user['openid'];
$row['openid'] = $user['openid'];
}
}
echo json_encode($insert);exit;
$insert[] = $row;
... ...