|
|
@@ -18,8 +18,18 @@ class RechargeSqClass extends BaseClass
|
|
|
if (!empty($has)) {
|
|
|
return true;
|
|
|
}
|
|
|
- $data = ['mainId' => $mainId, 'shopId' => $shopId, 'sn' => 1, 'recharge' => 500, 'give' => 0];
|
|
|
- self::add($data);
|
|
|
+ $data = [
|
|
|
+ ['sn' => 1, 'recharge' => 500, 'give' => 0],
|
|
|
+ ['sn' => 2, 'recharge' => 1000, 'give' => 0],
|
|
|
+ ['sn' => 3, 'recharge' => 2000, 'give' => 0],
|
|
|
+ ['sn' => 4, 'recharge' => 5000, 'give' => 0],
|
|
|
+ ['sn' => 5, 'recharge' => 10000, 'give' => 0],
|
|
|
+ ];
|
|
|
+ foreach ($data as $item) {
|
|
|
+ $item['mainId'] = $mainId;
|
|
|
+ $item['shopId'] = $shopId;
|
|
|
+ self::add($item);
|
|
|
+ }
|
|
|
return true;
|
|
|
}
|
|
|
|