Commit 24911ae4 by haojie

1

parent 818e2ccd
...@@ -63,9 +63,10 @@ public function createOrUpdate() ...@@ -63,9 +63,10 @@ public function createOrUpdate()
} }
} }
if (array_key_exists('Name', $update)) { if (array_key_exists('Name', $update) && array_key_exists('Protocol', $update)) {
// 产品和name都一致才更新
$model = MarketInscription::query(); $model = MarketInscription::query();
$model = $model->where('Name', $update['Name'])->first(); $model = $model->where('Name', $update['Name'])->where('Protocol', $update['Protocol'])->first();
if ($model) { if ($model) {
$model->update($update); $model->update($update);
} else { } else {
......
...@@ -123,14 +123,14 @@ const columns = [ ...@@ -123,14 +123,14 @@ const columns = [
className: () => "font14", className: () => "font14",
}, },
{ {
colKey: "TotalMinted", colKey: "TotalSupply",
title: "总供应量", title: "总供应量",
align: "center", align: "center",
className: "public-style font14", className: "public-style font14",
}, },
{ {
colKey: "LimitPerMint", colKey: "LimitPerMint",
title: "每分钟限制", title: "每个铭文数量",
align: "center", align: "center",
className: "public-style font14", className: "public-style font14",
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment