...
|
...
|
@@ -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;
|
|
|
|
|
|
|
...
|
...
|
|