|
|
|
@ -39,6 +39,9 @@ class Product extends BaseModel |
|
|
|
'latitude' => $product->latitude, |
|
|
|
'address' => $product->address, |
|
|
|
]); |
|
|
|
//UPDATE agent_products ap
|
|
|
|
//INNER JOIN products p ON ap.product_id=p.id AND ap.product_id>0
|
|
|
|
//SET ap.latitude=p.latitude, ap.longitude=p.longitude, ap.address=p.address;
|
|
|
|
/** 同步信息到代理商产品 END */ |
|
|
|
|
|
|
|
if ($product->isDirty('status') && $product->status == ProductStatus::ON_SALE) { |
|
|
|
|