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

注册记录手机号关系

... ... @@ -183,19 +183,18 @@ class User extends Backend
}
if ($row) {
if(!empty($mobile_col)){
//处理已有手机号
$mobile = $currentSheet->getCellByColumnAndRow($col, $currentRow)->getValue();
echo $mobile_col;
echo $mobile;exit;
$mobile = $currentSheet->getCellByColumnAndRow($mobile_col, $currentRow)->getValue();
$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;
... ...