mirror of
https://gitee.com/hzchunfen/erp.git
synced 2025-12-01 22:50:44 +00:00
commit
2e37befdda
@ -18,13 +18,14 @@ class Goods
|
|||||||
|
|
||||||
public static function incrQuantity($shopId, $quantity, $businessGoods)
|
public static function incrQuantity($shopId, $quantity, $businessGoods)
|
||||||
{
|
{
|
||||||
|
[$goodsCode, $skuCode] = explode('_', $businessGoods['external_sku_id']);
|
||||||
return [
|
return [
|
||||||
'data' => [
|
'data' => [
|
||||||
'stock' => $quantity,
|
'stock' => $quantity,
|
||||||
'business_sku_id' => $businessGoods['sku_id'],
|
'business_sku_id' => $businessGoods['sku_id'],
|
||||||
'business_goods_id' => $businessGoods['goods_id'],
|
'business_goods_id' => $businessGoods['goods_id'],
|
||||||
'erp_shop_id' => $shopId,
|
'erp_shop_id' => $shopId,
|
||||||
'erp_sku_id' => $businessGoods['external_sku_id'],
|
'erp_sku_id' => $skuCode,
|
||||||
],
|
],
|
||||||
'type' => '更新库存',
|
'type' => '更新库存',
|
||||||
];
|
];
|
||||||
|
|||||||
@ -20,7 +20,7 @@ class CreateUsersTable extends Migration
|
|||||||
$table->string('email')->nullable()->unique();
|
$table->string('email')->nullable()->unique();
|
||||||
$table->timestamp('email_verified_at')->nullable();
|
$table->timestamp('email_verified_at')->nullable();
|
||||||
$table->string('password');
|
$table->string('password');
|
||||||
$table->string('api_token', 80)->unique()->nullable(false);
|
$table->string('api_token', 80)->unique();
|
||||||
$table->softDeletes();
|
$table->softDeletes();
|
||||||
$table->rememberToken();
|
$table->rememberToken();
|
||||||
$table->timestamps();
|
$table->timestamps();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user