|
|
|
@ -4,6 +4,7 @@ namespace App\Service; |
|
|
|
|
|
|
|
use App\Model\Order; |
|
|
|
use App\Model\OrderGoods; |
|
|
|
use App\Model\OrderMain; |
|
|
|
use Hyperf\Di\Annotation\Inject; |
|
|
|
use Hyperf\DbConnection\Db; |
|
|
|
use App\Model\Goods; |
|
|
|
@ -46,8 +47,12 @@ class PurchaseLimitService implements PurchaseLimitServiceInterface |
|
|
|
return true; |
|
|
|
} |
|
|
|
|
|
|
|
public function delSsdbPurchaseRecord($order_id) |
|
|
|
public function delSsdbPurchaseRecord($global_order_id) |
|
|
|
{ |
|
|
|
$order_main = OrderMain::where('global_order_id',$global_order_id) |
|
|
|
->select('id','user_id') |
|
|
|
->first(); |
|
|
|
$order_id = $order_main->id; |
|
|
|
$ssdb = ApplicationContext::getContainer()->get(SSDBTask::class); |
|
|
|
$order = Order::query() |
|
|
|
->where('order_main_id',$order_id) |
|
|
|
|