|
...
|
...
|
@@ -64,6 +64,9 @@ class SyncProject extends Command |
|
|
|
*/
|
|
|
|
public function handle()
|
|
|
|
{
|
|
|
|
$api = new OaGlobalsoApi();
|
|
|
|
$data = $api->order_info(15086);
|
|
|
|
dd($data);
|
|
|
|
while (true){
|
|
|
|
$list = NoticeLog::where('type', NoticeLog::TYPE_PROJECT)->where('status', NoticeLog::STATUS_PENDING)->get();
|
|
|
|
foreach ($list as $item){
|
|
...
|
...
|
@@ -102,7 +105,7 @@ class SyncProject extends Command |
|
|
|
$this->renewSync($data['data']);
|
|
|
|
}
|
|
|
|
// TODO 如果是续费项目 并且有GEO版本,需要处理GEO版本
|
|
|
|
if (($data['data']['order_type'] == '续费') && !empty($data['data']['geo_plan'])) {
|
|
|
|
if (($data['data']['order_type'] == '续费') && FALSE == empty($data['data']['geo_plan']) && $data['data']['geo_plan'] != '无') {
|
|
|
|
//创建对应的GEO版本
|
|
|
|
$projectModel = new Project();
|
|
|
|
$seo_plan = $this->versionSeoData($data['data']['geo_plan'] ?? '');
|
...
|
...
|
|