|
@@ -9,6 +9,7 @@
|
9
|
9
|
namespace App\Services;
|
10
|
10
|
|
11
|
11
|
|
|
12
|
+use App\Log;
|
12
|
13
|
use App\Models\AccountConfig;
|
13
|
14
|
use App\Models\CompanyConfig;
|
14
|
15
|
use App\Models\CustomerConfig;
|
|
@@ -1157,11 +1158,11 @@ class ConfigService
|
1157
|
1158
|
Oplog::add('account_config', $res->id, 2, $res->toArray(), $value, null, 'CONFIG');
|
1158
|
1159
|
}
|
1159
|
1160
|
//同步修改订单表中数据
|
1160
|
|
- Order::where('month', $value['month'])->where('advertiser_id', $value['advertiser_id'])
|
1161
|
|
- ->update([
|
1162
|
|
- 'advertiser_account' => $value['advertiser_account'],
|
1163
|
|
- 'account_budget' => $value['account_budget']
|
1164
|
|
- ]);
|
|
1161
|
+// Order::where('month', $value['month'])->where('advertiser_id', $value['advertiser_id'])
|
|
1162
|
+// ->update([
|
|
1163
|
+// 'advertiser_account' => $value['advertiser_account'],
|
|
1164
|
+// 'account_budget' => $value['account_budget']
|
|
1165
|
+// ]);
|
1165
|
1166
|
} else {
|
1166
|
1167
|
$re = AccountConfig::insertGetId($value);
|
1167
|
1168
|
if($re > 0) {
|
|
@@ -1172,6 +1173,10 @@ class ConfigService
|
1172
|
1173
|
\DB::commit();
|
1173
|
1174
|
return true;
|
1174
|
1175
|
} catch (\Exception $exception) {
|
|
1176
|
+ Log::logError('程序异常', [
|
|
1177
|
+ 'file' => $exception->getFile(), 'line' => $exception->getLine(), 'message' => $exception->getMessage(),
|
|
1178
|
+ 'trace' => $exception->getTraceAsString()
|
|
1179
|
+ ], 'UploadAccount');
|
1175
|
1180
|
\DB::rollBack();
|
1176
|
1181
|
return false;
|
1177
|
1182
|
}
|