add contract for product and refund parse
This commit is contained in:
@@ -15,7 +15,7 @@ use App\Model\Order;
|
||||
use App\Model\OrderItem;
|
||||
use App\Model\RefundItem;
|
||||
use App\Model\Store;
|
||||
use App\Entity\Parse\EntityParse;
|
||||
use App\Platform\AbstractRefundParse;
|
||||
use Carbon\Carbon;
|
||||
use Hyperf\Collection\LazyCollection;
|
||||
use Hyperf\DbConnection\Db;
|
||||
@@ -27,7 +27,7 @@ use InvalidArgumentException;
|
||||
* Tmall 没有主退款和子退款的概念,每个售后单对应一个订单子项。
|
||||
* 每个售后单同时写入 refunds(主记录)和 refund_items(明细)两张表。
|
||||
*/
|
||||
class Refund extends EntityParse
|
||||
class Refund extends AbstractRefundParse
|
||||
{
|
||||
/**
|
||||
* 公司作用域匹配
|
||||
@@ -140,7 +140,7 @@ class Refund extends EntityParse
|
||||
* @param array $platform_refund_id_to_local_refund_id_map [platform_refund_id => local db refund id]
|
||||
* @return array
|
||||
*/
|
||||
public function formatRefundItemsFromRaw(array $raw_data, array| null $platform_refund_id_to_local_refund_id_map = null): array
|
||||
public function formatRefundItemsFromRaw(array $raw_data, ?array $platform_refund_id_to_local_refund_id_map): array
|
||||
{
|
||||
$records = isset($raw_data[0]) ? $raw_data : [$raw_data];
|
||||
$items = [];
|
||||
|
||||
Reference in New Issue
Block a user