Commit f5576861 authored by hangjun83's avatar hangjun83

openapi 震坤行

parent 1a4b5021
...@@ -26,7 +26,7 @@ class RhawnChemicalsService ...@@ -26,7 +26,7 @@ class RhawnChemicalsService
} }
/** /**
* @param int $offset * @param int $offse
* @param int $limit * @param int $limit
*/ */
public function getChemicalRawList($offset = 0, $limit = 100) public function getChemicalRawList($offset = 0, $limit = 100)
...@@ -96,6 +96,12 @@ class RhawnChemicalsService ...@@ -96,6 +96,12 @@ class RhawnChemicalsService
} }
} }
public function updateSyncRunTime($goods)
{
$dbConnect = DB::connection('rhawn_mysql');
$dbConnect->table('zkh_goods')->where('zg_id',$goods['zg_id'])->update(['zg_sync_time' => time()]);
}
public function getRawProductsThroughPid($pId) public function getRawProductsThroughPid($pId)
{ {
try{ try{
......
...@@ -57,6 +57,8 @@ class ZhenKhService ...@@ -57,6 +57,8 @@ class ZhenKhService
],$this->getToken()); ],$this->getToken());
} }
$this->rhawnService->updateSyncRunTime($goods);
}catch (\Throwable $exception) { }catch (\Throwable $exception) {
$this->apiService->throwableAfter([ $this->apiService->throwableAfter([
'platform_name' => $this->apiService->getPlatformInfo('platform_name'), 'platform_name' => $this->apiService->getPlatformInfo('platform_name'),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment