|
@@ -465,22 +465,13 @@ class Todo extends Base
|
|
|
exception('订单修改失败');
|
|
|
}
|
|
|
if($info['work_type_mode'] == 3){
|
|
|
-// $wlps = Db::connect('db_config_jili')->name('wlps')->where('order_id',$info['order_id'])->find();
|
|
|
- $wlps = Db::name('wlps')->where('order_id',$info['order_id'])->find();
|
|
|
+ $wlps = Db::connect('db_config_jili')->name('wlps')->where('order_id',$info['order_id'])->find();
|
|
|
if($wlps){
|
|
|
$user = Db::name('user')->where('id',$info['to_user_id'])->find();
|
|
|
-// Db::connect('db_config_jili')->name('wlps')
|
|
|
-// ->where('id',$wlps['id'])
|
|
|
-// ->update([
|
|
|
-// 'paisr' => $user?$user['user_id']:'',
|
|
|
-// 'paisr_name' => $user?$user['real_name']:'',
|
|
|
-// 'paisr_phone' => $user?$user['mobile']:'',
|
|
|
-// 'pais_time' => date('Y-m-d H:i:s')
|
|
|
-// ]);
|
|
|
- Db::name('wlps')
|
|
|
+ Db::connect('db_config_jili')->name('wlps')
|
|
|
->where('id',$wlps['id'])
|
|
|
->update([
|
|
|
- 'paisr' => $user?$user['id']:'',
|
|
|
+ 'paisr' => $user?$user['user_id']:'',
|
|
|
'paisr_name' => $user?$user['real_name']:'',
|
|
|
'paisr_phone' => $user?$user['mobile']:'',
|
|
|
'pais_time' => date('Y-m-d H:i:s')
|
|
@@ -611,13 +602,9 @@ class Todo extends Base
|
|
|
}
|
|
|
}
|
|
|
if($data['work_type_mode'] == 3){
|
|
|
-// $wlps = Db::connect('db_config_jili')->name('wlps')->where('order_id',$data['order_id'])->find();
|
|
|
- $wlps = Db::name('wlps')->where('order_id',$data['order_id'])->find();
|
|
|
+ $wlps = Db::connect('db_config_jili')->name('wlps')->where('order_id',$data['order_id'])->find();
|
|
|
if($wlps){
|
|
|
-// Db::connect('db_config_jili')->name('wlps')->where('id',$wlps['id'])->update([
|
|
|
-// 'send_time' => date('Y-m-d H:i:s')
|
|
|
-// ]);
|
|
|
- Db::name('wlps')->where('id',$wlps['id'])->update([
|
|
|
+ Db::connect('db_config_jili')->name('wlps')->where('id',$wlps['id'])->update([
|
|
|
'send_time' => date('Y-m-d H:i:s')
|
|
|
]);
|
|
|
}
|
|
@@ -939,22 +926,13 @@ class Todo extends Base
|
|
|
return false;
|
|
|
}
|
|
|
if($todo['work_type_mode'] == 3){
|
|
|
-// $wlps = Db::connect('db_config_jili')->name('wlps')->where('order_id',$todo['order_id'])->find();
|
|
|
- $wlps = Db::name('wlps')->where('order_id',$todo['order_id'])->find();
|
|
|
+ $wlps = Db::connect('db_config_jili')->name('wlps')->where('order_id',$todo['order_id'])->find();
|
|
|
if($wlps){
|
|
|
$user = Db::name('user')->where('id',$todo['to_user_id'])->find();
|
|
|
-// Db::connect('db_config_jili')->name('wlps')
|
|
|
-// ->where('id',$wlps['id'])
|
|
|
-// ->update([
|
|
|
-// 'paisr' => $user?$user['user_id']:'',
|
|
|
-// 'paisr_name' => $user?$user['real_name']:'',
|
|
|
-// 'paisr_phone' => $user?$user['mobile']:'',
|
|
|
-// 'pais_time' => date('Y-m-d H:i:s')
|
|
|
-// ]);
|
|
|
- Db::name('wlps')
|
|
|
+ Db::connect('db_config_jili')->name('wlps')
|
|
|
->where('id',$wlps['id'])
|
|
|
->update([
|
|
|
- 'paisr' => $user?$user['id']:'',
|
|
|
+ 'paisr' => $user?$user['user_id']:'',
|
|
|
'paisr_name' => $user?$user['real_name']:'',
|
|
|
'paisr_phone' => $user?$user['mobile']:'',
|
|
|
'pais_time' => date('Y-m-d H:i:s')
|