...
|
...
|
@@ -463,6 +463,17 @@ class Config extends Api |
|
|
'updatetime' => time()
|
|
|
]
|
|
|
);
|
|
|
//添加客户
|
|
|
$ObInfo = Db::name('ob')->where('id', $Params['ob_id'])->find();
|
|
|
$IsBusiness = Db::name('business')->where('seller_id', $ObInfo['seller_id'])->where('user_id', $ObInfo['user_id'])->find();
|
|
|
if (empty($IsBusiness)) {
|
|
|
$DataDusiness = [
|
|
|
'seller_id' => $ObInfo['seller_id'],
|
|
|
'user_id' => $ObInfo['user_id'],
|
|
|
'createtime' => time()
|
|
|
];
|
|
|
Db::name('business')->insert($DataDusiness);
|
|
|
}
|
|
|
if (!$res) {
|
|
|
$this->error('绑定失败', 0);
|
|
|
}
|
...
|
...
|
|