|
|
@@ -906,6 +906,12 @@ ALTER TABLE `xhMerchantCapital` MODIFY `io` TINYINT NOT NULL DEFAULT 0 COMMENT '
|
|
|
$oldUserList = Yii::$app->db2->createCommand('select * from xhUserOldData where `status`=0')->queryAll();
|
|
|
if (!empty($oldUserList)) {
|
|
|
foreach ($oldUserList as $user) {
|
|
|
+ $mobile = $user['mobile'];
|
|
|
+ $exists = UserService::getByCondition(['mobile' => $mobile, 'merchantId' => 12358]);
|
|
|
+ if (!emtpy($exists)) {
|
|
|
+ echo "老客户:'.$mobile.'已经导入过了。\n";
|
|
|
+ continue;
|
|
|
+ }
|
|
|
$user['realName'] = $user['userName'];
|
|
|
$user['growth'] = $user['integral'];
|
|
|
$insertUser = UserService::addUser($user);
|
|
|
@@ -975,12 +981,12 @@ ALTER TABLE `xhMerchantCapital` MODIFY `io` TINYINT NOT NULL DEFAULT 0 COMMENT '
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
$sql = "ALTER TABLE xhGoods ADD `briefContent` VARCHAR(1000) NOT NULL DEFAULT '' COMMENT '简单内容介绍,移动端添加商品' AFTER `content`;";
|
|
|
Yii::$app->db->createCommand($sql)->execute();
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
//重新拉取并保存国兰客户的头像和图片 shish 2020.1.12
|
|
|
public function actionSyncAvatar()
|
|
|
{
|