correct gramm
This commit is contained in:
@@ -113,9 +113,11 @@ function client_status_sub($client_id, $client_group = 3){
|
||||
}
|
||||
|
||||
$findsql = "SELECT number_id FROM `anbuy` WHERE `client_id` = '$client_id' AND `number_id` = '486' AND `buy_status` = '1' LIMIT 1";
|
||||
|
||||
// echo $findsql;
|
||||
$findsub = db_get($findsql);
|
||||
|
||||
//print_r($findsub);
|
||||
|
||||
if (isset($findsub['number_id'])){
|
||||
return True;
|
||||
}
|
||||
|
||||
@@ -48,7 +48,7 @@ function checkout_kuri($priceslug, $delivery_id = 1){
|
||||
}
|
||||
else {
|
||||
$price = $price_id['offline_price']; // бумажный прайс
|
||||
$delivery = delivery_list(); // список доставок для бумажной версии
|
||||
$delivery = delivery_list($price_id['weight']); // список доставок для бумажной версии
|
||||
}
|
||||
|
||||
|
||||
@@ -308,7 +308,7 @@ function status_kuri($order_id){
|
||||
}
|
||||
|
||||
|
||||
function delivery_list() {
|
||||
function delivery_list($weight = 250) {
|
||||
|
||||
$result = [];
|
||||
|
||||
@@ -319,6 +319,15 @@ function delivery_list() {
|
||||
$key = $del['delivery_id'];
|
||||
$result[$key] = $del;
|
||||
|
||||
if ($del['delivery_id'] == 4){
|
||||
if ($weight > 250){
|
||||
$result[$key]['delivery_price'] = 450;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
return $result;
|
||||
|
||||
@@ -50,6 +50,7 @@ function pdfs_init($source, $page = 1){
|
||||
|
||||
$name = pdfs_hash($source);
|
||||
$cachedir = PGDIR.$name.'/';
|
||||
//echo $cachedir;
|
||||
$cachefile = $name.'-'.$page.'.pdf';
|
||||
$fullcachefile = $cachedir.$cachefile;
|
||||
|
||||
|
||||
@@ -74,6 +74,7 @@
|
||||
|
||||
<?if($delivery_id > 1):?>
|
||||
|
||||
|
||||
<p style="font-weight: bold;font-size: 22px;"><label for="buy_adress">Фамилия, имя, отчество:</label><br></p>
|
||||
<p><input id="buy_name" name="buy_name" value="<?=post_value("buy_name")?>" type="text"></p>
|
||||
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/root
|
||||
PATH=$PATH:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
|
||||
|
||||
docker exec ds_fpm php /thosts/anpdf/app/index.php sendstatus
|
||||
docker exec arlemp_pdftk_1 php /vhosts/anpdf/app/index.php sendstatus
|
||||
|
||||
Reference in New Issue
Block a user